Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(439)

Side by Side Diff: chrome/browser/chromeos/arc/arc_auth_service.cc

Issue 2104893003: Adds a new checkbox for backup and restore in opt-in flow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adds a new checkbox for backup and restore in opt-in flow. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/app/chromeos_strings.grdp ('k') | chrome/browser/chromeos/arc/arc_support_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/app/chromeos_strings.grdp ('k') | chrome/browser/chromeos/arc/arc_support_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698