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

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

Issue 494093002: OwnerKeyUtil is moved to components/ownership. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix. Created 6 years, 4 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 b0e53c521278d8c56f30f5ccc155f3593358909b..fcd6976d1b2fc29b45a77428ae3746fa0bb7d8e6 100644
--- a/chrome/browser/chromeos/ownership/owner_settings_service.h
+++ b/chrome/browser/chromeos/ownership/owner_settings_service.h
@@ -14,10 +14,10 @@
#include "base/memory/weak_ptr.h"
#include "base/threading/thread_checker.h"
#include "chrome/browser/chromeos/settings/device_settings_service.h"
-#include "chrome/browser/chromeos/settings/owner_key_util.h"
#include "chromeos/dbus/session_manager_client.h"
#include "chromeos/tpm_token_loader.h"
#include "components/keyed_service/core/keyed_service.h"
+#include "components/ownership/owner_key_util.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
@@ -76,7 +76,7 @@ class OwnerSettingsService : public DeviceSettingsService::PrivateKeyDelegate,
const IsOwnerCallback& callback);
static void SetOwnerKeyUtilForTesting(
- const scoped_refptr<OwnerKeyUtil>& owner_key_util);
+ const scoped_refptr<ownership::OwnerKeyUtil>& owner_key_util);
static void SetDeviceSettingsServiceForTesting(
DeviceSettingsService* device_settings_service);
@@ -91,8 +91,8 @@ class OwnerSettingsService : public DeviceSettingsService::PrivateKeyDelegate,
void ReloadPrivateKey();
// Called when ReloadPrivateKey() completes it's work.
- void OnPrivateKeyLoaded(scoped_refptr<PublicKey> public_key,
- scoped_refptr<PrivateKey> private_key);
+ void OnPrivateKeyLoaded(scoped_refptr<ownership::PublicKey> public_key,
+ scoped_refptr<ownership::PrivateKey> private_key);
// Puts request to perform sign-and-store operation in the queue.
void EnqueueSignAndStore(scoped_ptr<enterprise_management::PolicyData> policy,
@@ -112,7 +112,7 @@ class OwnerSettingsService : public DeviceSettingsService::PrivateKeyDelegate,
// Returns testing instance of OwnerKeyUtil when it's set, otherwise
// returns |owner_key_util_|.
- scoped_refptr<OwnerKeyUtil> GetOwnerKeyUtil();
+ scoped_refptr<ownership::OwnerKeyUtil> GetOwnerKeyUtil();
// Returns testing instance of DeviceSettingsService when it's set,
// otherwise returns pointer to a singleton instance, when it's
@@ -125,11 +125,11 @@ class OwnerSettingsService : public DeviceSettingsService::PrivateKeyDelegate,
// User ID this service instance belongs to.
std::string user_id_;
- scoped_refptr<PublicKey> public_key_;
+ scoped_refptr<ownership::PublicKey> public_key_;
- scoped_refptr<PrivateKey> private_key_;
+ scoped_refptr<ownership::PrivateKey> private_key_;
- scoped_refptr<OwnerKeyUtil> owner_key_util_;
+ scoped_refptr<ownership::OwnerKeyUtil> owner_key_util_;
std::vector<IsOwnerCallback> pending_is_owner_callbacks_;

Powered by Google App Engine
This is Rietveld 408576698