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

Unified Diff: chrome/browser/chromeos/login/owner_key_reloader_service.h

Issue 270663002: Implemented profile-aware owner key loading. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed tests. Created 6 years, 7 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/login/owner_key_reloader_service.h
diff --git a/chrome/browser/chromeos/login/owner_key_reloader_service.h b/chrome/browser/chromeos/login/owner_key_reloader_service.h
new file mode 100644
index 0000000000000000000000000000000000000000..972878ccb86b60d54d0654379ce0ccc774ee5752
--- /dev/null
+++ b/chrome/browser/chromeos/login/owner_key_reloader_service.h
@@ -0,0 +1,40 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_KEY_RELOADER_SERVICE_H_
+#define CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_KEY_RELOADER_SERVICE_H_
+
+#include <string>
+
+#include "base/macros.h"
+#include "components/keyed_service/core/keyed_service.h"
+
+class Profile;
+
+namespace chromeos {
+
Mattias Nissler (ping if slow) 2014/05/14 12:18:10 nit: Class comment would be nice to explain what t
ygorshenin1 2014/05/14 15:30:07 Done.
+class OwnerKeyReloaderService : public KeyedService {
Mattias Nissler (ping if slow) 2014/05/14 12:18:10 I was assuming that this is going to be the servic
ygorshenin1 2014/05/14 15:30:07 Done.
+ public:
+ virtual ~OwnerKeyReloaderService();
+
+ static void SetUsername(const std::string& username);
+ static std::string GetUsername();
+
+ void ReloadOwnerKey();
+
+ private:
+ friend class OwnerKeyReloaderServiceFactory;
+
+ explicit OwnerKeyReloaderService(Profile* profile);
+
+ static std::string username_;
+
+ Profile* profile_;
+
+ DISALLOW_COPY_AND_ASSIGN(OwnerKeyReloaderService);
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_KEY_RELOADER_SERVICE_H_

Powered by Google App Engine
This is Rietveld 408576698