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

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

Issue 270663002: Implemented profile-aware owner key loading. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes. 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.h
diff --git a/chrome/browser/chromeos/login/owner_key_reloader.h b/chrome/browser/chromeos/login/owner_key_reloader.h
new file mode 100644
index 0000000000000000000000000000000000000000..64863bb2dc4f981ffccb2fbb719b5cfd1073efea
--- /dev/null
+++ b/chrome/browser/chromeos/login/owner_key_reloader.h
@@ -0,0 +1,39 @@
+// 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_H_
+#define CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_KEY_RELOADER_H_
+
+#include <string>
+
+#include "base/compiler_specific.h"
+#include "base/macros.h"
+#include "content/public/browser/notification_observer.h"
+#include "content/public/browser/notification_registrar.h"
+
+namespace chromeos {
+
+class OwnerKeyReloader : public content::NotificationObserver {
Mattias Nissler (ping if slow) 2014/05/13 11:55:53 Instead of tracking login / profile creation expli
Nikita (slow) 2014/05/13 15:33:06 In case of PKS it should ignore sign in profile.
ygorshenin1 2014/05/14 09:10:58 Done.
+ public:
+ OwnerKeyReloader();
+ virtual ~OwnerKeyReloader();
+
+ // content::NotificationObserver implementation:
+ virtual void Observe(int type,
+ const content::NotificationSource& source,
+ const content::NotificationDetails& details) OVERRIDE;
+
+ void ReloadOwnerKey(const std::string& username);
+
+ private:
+ std::string username_;
+
+ content::NotificationRegistrar registrar_;
+
+ DISALLOW_COPY_AND_ASSIGN(OwnerKeyReloader);
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_KEY_RELOADER_H_

Powered by Google App Engine
This is Rietveld 408576698