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

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

Issue 2805833002: Migrate Cryptauth*Managers RegisterPrefs to CryptAuthService::RegisterProfilePrefs. (Closed)
Patch Set: Replace initializer_unittest RegisterPrefs calls with Initializer::RegisterProfilePrefs. 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
« no previous file with comments | « chrome/browser/signin/easy_unlock_service.cc ('k') | chromeos/components/tether/initializer.cc » ('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 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 <memory> 8 #include <memory>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "components/prefs/pref_registry_simple.h"
14 #include "components/signin/core/browser/profile_oauth2_token_service.h" 15 #include "components/signin/core/browser/profile_oauth2_token_service.h"
15 #include "device/bluetooth/bluetooth_adapter.h" 16 #include "device/bluetooth/bluetooth_adapter.h"
16 #include "device/bluetooth/bluetooth_advertisement.h" 17 #include "device/bluetooth/bluetooth_advertisement.h"
17 18
18 class PrefService; 19 class PrefService;
19 20
20 namespace cryptauth { 21 namespace cryptauth {
21 class CryptAuthService; 22 class CryptAuthService;
22 class RemoteBeaconSeedFetcher; 23 class RemoteBeaconSeedFetcher;
23 } 24 }
(...skipping 26 matching lines...) Expand all
50 std::unique_ptr<NotificationPresenter> notification_presenter, 51 std::unique_ptr<NotificationPresenter> notification_presenter,
51 PrefService* pref_service, 52 PrefService* pref_service,
52 ProfileOAuth2TokenService* token_service, 53 ProfileOAuth2TokenService* token_service,
53 NetworkStateHandler* network_state_handler, 54 NetworkStateHandler* network_state_handler,
54 NetworkConnect* network_connect); 55 NetworkConnect* network_connect);
55 56
56 // Shuts down the tether feature, destroying all internal classes. This should 57 // Shuts down the tether feature, destroying all internal classes. This should
57 // be called before the dependencies passed to Init() are destroyed. 58 // be called before the dependencies passed to Init() are destroyed.
58 static void Shutdown(); 59 static void Shutdown();
59 60
61 static void RegisterProfilePrefs(PrefRegistrySimple* registry);
62
60 private: 63 private:
61 friend class InitializerTest; 64 friend class InitializerTest;
62 65
63 static Initializer* instance_; 66 static Initializer* instance_;
64 67
65 Initializer(cryptauth::CryptAuthService* cryptauth_service, 68 Initializer(cryptauth::CryptAuthService* cryptauth_service,
66 std::unique_ptr<NotificationPresenter> notification_presenter, 69 std::unique_ptr<NotificationPresenter> notification_presenter,
67 PrefService* pref_service, 70 PrefService* pref_service,
68 ProfileOAuth2TokenService* token_service, 71 ProfileOAuth2TokenService* token_service,
69 NetworkStateHandler* network_state_handler, 72 NetworkStateHandler* network_state_handler,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 base::WeakPtrFactory<Initializer> weak_ptr_factory_; 112 base::WeakPtrFactory<Initializer> weak_ptr_factory_;
110 113
111 DISALLOW_COPY_AND_ASSIGN(Initializer); 114 DISALLOW_COPY_AND_ASSIGN(Initializer);
112 }; 115 };
113 116
114 } // namespace tether 117 } // namespace tether
115 118
116 } // namespace chromeos 119 } // namespace chromeos
117 120
118 #endif // CHROMEOS_COMPONENTS_TETHER_INITIALIZER_H_ 121 #endif // CHROMEOS_COMPONENTS_TETHER_INITIALIZER_H_
OLDNEW
« no previous file with comments | « chrome/browser/signin/easy_unlock_service.cc ('k') | chromeos/components/tether/initializer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698