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

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

Issue 1662843002: Revert of Delete base/prefs and update callers to use components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
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 <utility> 7 #include <utility>
8 8
9 #include "base/prefs/pref_service.h"
9 #include "chrome/browser/chromeos/arc/arc_auth_ui.h" 10 #include "chrome/browser/chromeos/arc/arc_auth_ui.h"
10 #include "chrome/browser/profiles/profile.h" 11 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/common/pref_names.h" 12 #include "chrome/common/pref_names.h"
12 #include "components/arc/arc_bridge_service.h" 13 #include "components/arc/arc_bridge_service.h"
13 #include "components/pref_registry/pref_registry_syncable.h" 14 #include "components/pref_registry/pref_registry_syncable.h"
14 #include "components/prefs/pref_service.h"
15 15
16 namespace arc { 16 namespace arc {
17 17
18 namespace { 18 namespace {
19 19
20 // Weak pointer. This class is owned by ArcServiceManager. 20 // Weak pointer. This class is owned by ArcServiceManager.
21 ArcAuthService* arc_auth_service = nullptr; 21 ArcAuthService* arc_auth_service = nullptr;
22 22
23 // Skip creating UI in unit tests 23 // Skip creating UI in unit tests
24 bool disable_ui_for_testing = false; 24 bool disable_ui_for_testing = false;
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 return os << kStateNoCode; 212 return os << kStateNoCode;
213 case ArcAuthService::State::ENABLE: 213 case ArcAuthService::State::ENABLE:
214 return os << kStateEnable; 214 return os << kStateEnable;
215 default: 215 default:
216 NOTREACHED(); 216 NOTREACHED();
217 return os; 217 return os;
218 } 218 }
219 } 219 }
220 220
221 } // namespace arc 221 } // namespace arc
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/arc/arc_auth_service.h ('k') | chrome/browser/chromeos/arc/arc_auth_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698