| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <ostream> | 9 #include <ostream> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 // browser_tests | 114 // browser_tests |
| 115 virtual void OnArcDataRemoved() {} | 115 virtual void OnArcDataRemoved() {} |
| 116 }; | 116 }; |
| 117 | 117 |
| 118 explicit ArcSessionManager( | 118 explicit ArcSessionManager( |
| 119 std::unique_ptr<ArcSessionRunner> arc_session_runner); | 119 std::unique_ptr<ArcSessionRunner> arc_session_runner); |
| 120 ~ArcSessionManager() override; | 120 ~ArcSessionManager() override; |
| 121 | 121 |
| 122 static ArcSessionManager* Get(); | 122 static ArcSessionManager* Get(); |
| 123 | 123 |
| 124 // Exposed here for unit_tests validation. |
| 125 static bool IsOobeOptInActive(); |
| 126 |
| 124 // It is called from chrome/browser/prefs/browser_prefs.cc. | 127 // It is called from chrome/browser/prefs/browser_prefs.cc. |
| 125 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | 128 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
| 126 | 129 |
| 127 static void DisableUIForTesting(); | 130 static void DisableUIForTesting(); |
| 128 static void SetShelfDelegateForTesting(ash::ShelfDelegate* shelf_delegate); | 131 static void SetShelfDelegateForTesting(ash::ShelfDelegate* shelf_delegate); |
| 129 | 132 |
| 130 // Checks if OptIn verification was disabled by switch in command line. | 133 // Checks if OptIn verification was disabled by switch in command line. |
| 131 static bool IsOptInVerificationDisabled(); | 134 static bool IsOptInVerificationDisabled(); |
| 132 | 135 |
| 133 static void EnableCheckAndroidManagementForTesting(); | 136 static void EnableCheckAndroidManagementForTesting(); |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 DISALLOW_COPY_AND_ASSIGN(ArcSessionManager); | 287 DISALLOW_COPY_AND_ASSIGN(ArcSessionManager); |
| 285 }; | 288 }; |
| 286 | 289 |
| 287 // Outputs the stringified |state| to |os|. This is only for logging purposes. | 290 // Outputs the stringified |state| to |os|. This is only for logging purposes. |
| 288 std::ostream& operator<<(std::ostream& os, | 291 std::ostream& operator<<(std::ostream& os, |
| 289 const ArcSessionManager::State& state); | 292 const ArcSessionManager::State& state); |
| 290 | 293 |
| 291 } // namespace arc | 294 } // namespace arc |
| 292 | 295 |
| 293 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_ | 296 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_ |
| OLD | NEW |