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 <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/prefs/pref_service.h" | |
10 #include "chrome/browser/chromeos/arc/arc_auth_ui.h" | 9 #include "chrome/browser/chromeos/arc/arc_auth_ui.h" |
11 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
12 #include "chrome/common/pref_names.h" | 11 #include "chrome/common/pref_names.h" |
13 #include "components/arc/arc_bridge_service.h" | 12 #include "components/arc/arc_bridge_service.h" |
14 #include "components/pref_registry/pref_registry_syncable.h" | 13 #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 Loading... |
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 |
OLD | NEW |