| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "chrome/browser/chromeos/arc/arc_auth_service.h" | 5 #include "chrome/browser/chromeos/arc/arc_auth_service.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "ash/shelf/shelf_delegate.h" | 10 #include "ash/shelf/shelf_delegate.h" |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 return arc_auth_service; | 127 return arc_auth_service; |
| 128 } | 128 } |
| 129 | 129 |
| 130 // static | 130 // static |
| 131 void ArcAuthService::RegisterProfilePrefs( | 131 void ArcAuthService::RegisterProfilePrefs( |
| 132 user_prefs::PrefRegistrySyncable* registry) { | 132 user_prefs::PrefRegistrySyncable* registry) { |
| 133 registry->RegisterBooleanPref( | 133 registry->RegisterBooleanPref( |
| 134 prefs::kArcEnabled, false, | 134 prefs::kArcEnabled, false, |
| 135 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 135 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
| 136 registry->RegisterBooleanPref(prefs::kArcSignedIn, false); | 136 registry->RegisterBooleanPref(prefs::kArcSignedIn, false); |
| 137 registry->RegisterBooleanPref(prefs::kArcBackupRestoreEnabled, true); |
| 137 } | 138 } |
| 138 | 139 |
| 139 // static | 140 // static |
| 140 void ArcAuthService::DisableUIForTesting() { | 141 void ArcAuthService::DisableUIForTesting() { |
| 141 disable_ui_for_testing = true; | 142 disable_ui_for_testing = true; |
| 142 } | 143 } |
| 143 | 144 |
| 144 // static | 145 // static |
| 145 void ArcAuthService::SetShelfDelegateForTesting( | 146 void ArcAuthService::SetShelfDelegateForTesting( |
| 146 ash::ShelfDelegate* shelf_delegate) { | 147 ash::ShelfDelegate* shelf_delegate) { |
| (...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 774 return os << kStateFetchingCode; | 775 return os << kStateFetchingCode; |
| 775 case ArcAuthService::State::ACTIVE: | 776 case ArcAuthService::State::ACTIVE: |
| 776 return os << kStateActive; | 777 return os << kStateActive; |
| 777 default: | 778 default: |
| 778 NOTREACHED(); | 779 NOTREACHED(); |
| 779 return os; | 780 return os; |
| 780 } | 781 } |
| 781 } | 782 } |
| 782 | 783 |
| 783 } // namespace arc | 784 } // namespace arc |
| OLD | NEW |