Avi Drissman | 4a8573c | 2022-09-09 19:35:54 | [diff] [blame] | 1 | // Copyright 2022 The Chromium Authors |
Xi Han | 115d570 | 2022-09-02 18:18:59 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef CHROME_BROWSER_TOOLBAR_MANAGER_TEST_HELPER_ANDROID_H_ |
| 6 | #define CHROME_BROWSER_TOOLBAR_MANAGER_TEST_HELPER_ANDROID_H_ |
| 7 | |
| 8 | // Utilities that interface with Java to configure ToolbarManager properly in |
| 9 | // browser testing on Android. |
| 10 | |
| 11 | namespace toolbar_manager { |
| 12 | |
| 13 | // Skips recreating the Android activity when homepage settings are changed. |
| 14 | // This happens when the feature chrome::android::kStartSurfaceAndroid is |
| 15 | // enabled. |
| 16 | void setSkipRecreateForTesting(bool skipRecreating); |
| 17 | |
| 18 | } // namespace toolbar_manager |
| 19 | |
| 20 | #endif // CHROME_BROWSER_TOOLBAR_MANAGER_TEST_HELPER_ANDROID_H_ |