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

Unified Diff: chrome/browser/chromeos/ownership/owner_settings_service.h

Issue 516243002: Instantiation of OwnerKeyUtil is delegated to OwnerSettingsServiceFactory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: BUILD.gn is fixed + style fixes. Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/ownership/owner_settings_service.h
diff --git a/chrome/browser/chromeos/ownership/owner_settings_service.h b/chrome/browser/chromeos/ownership/owner_settings_service.h
index a86c084673167805c5b7c9b87db58503d953ad91..744983105b71044fa288a6b0e9e8130a47c782a0 100644
--- a/chrome/browser/chromeos/ownership/owner_settings_service.h
+++ b/chrome/browser/chromeos/ownership/owner_settings_service.h
@@ -75,18 +75,15 @@ class OwnerSettingsService : public DeviceSettingsService::PrivateKeyDelegate,
const std::string& user_hash,
const IsOwnerCallback& callback);
- static scoped_refptr<ownership::OwnerKeyUtil> MakeOwnerKeyUtil();
-
- static void SetOwnerKeyUtilForTesting(
- const scoped_refptr<ownership::OwnerKeyUtil>& owner_key_util);
-
static void SetDeviceSettingsServiceForTesting(
DeviceSettingsService* device_settings_service);
private:
friend class OwnerSettingsServiceFactory;
- explicit OwnerSettingsService(Profile* profile);
+ OwnerSettingsService(
+ Profile* profile,
+ const scoped_refptr<ownership::OwnerKeyUtil>& owner_key_util);
// Reloads private key from profile's NSS slots. Responds via call
// to OnPrivateKeyLoaded().

Powered by Google App Engine
This is Rietveld 408576698