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

Side by Side Diff: chromeos/components/tether/initializer.h

Issue 2805833002: Migrate Cryptauth*Managers RegisterPrefs to CryptAuthService::RegisterProfilePrefs. (Closed)
Patch Set: Created 3 years, 8 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 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 CHROMEOS_COMPONENTS_TETHER_INITIALIZER_H_ 5 #ifndef CHROMEOS_COMPONENTS_TETHER_INITIALIZER_H_
6 #define CHROMEOS_COMPONENTS_TETHER_INITIALIZER_H_ 6 #define CHROMEOS_COMPONENTS_TETHER_INITIALIZER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/prefs/pref_registry_simple.h"
9 10
10 namespace cryptauth { 11 namespace cryptauth {
11 class CryptAuthService; 12 class CryptAuthService;
12 } 13 }
13 14
14 namespace chromeos { 15 namespace chromeos {
15 16
16 namespace tether { 17 namespace tether {
17 18
18 // Initializes the Tether Chrome OS component. 19 // Initializes the Tether Chrome OS component.
19 // TODO(khorimoto): Implement. 20 // TODO(khorimoto): Implement.
20 class Initializer { 21 class Initializer {
21 public: 22 public:
22 static void Initialize(cryptauth::CryptAuthService* cryptauth_service); 23 static void Initialize(cryptauth::CryptAuthService* cryptauth_service);
23 24
25 static void RegisterProfilePrefs(PrefRegistrySimple* registry);
26
24 private: 27 private:
25 static Initializer* instance_; 28 static Initializer* instance_;
26 29
27 explicit Initializer(cryptauth::CryptAuthService* cryptauth_service); 30 explicit Initializer(cryptauth::CryptAuthService* cryptauth_service);
28 ~Initializer(); 31 ~Initializer();
29 32
30 cryptauth::CryptAuthService* cryptauth_service_; 33 cryptauth::CryptAuthService* cryptauth_service_;
31 34
32 DISALLOW_COPY_AND_ASSIGN(Initializer); 35 DISALLOW_COPY_AND_ASSIGN(Initializer);
33 }; 36 };
34 37
35 } // namespace tether 38 } // namespace tether
36 39
37 } // namespace chromeos 40 } // namespace chromeos
38 41
39 #endif // CHROMEOS_COMPONENTS_TETHER_INITIALIZER_H_ 42 #endif // CHROMEOS_COMPONENTS_TETHER_INITIALIZER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698