Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_KEY_RELOADER_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_KEY_RELOADER_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/compiler_specific.h" | |
| 11 #include "base/macros.h" | |
| 12 #include "content/public/browser/notification_observer.h" | |
| 13 #include "content/public/browser/notification_registrar.h" | |
| 14 | |
| 15 namespace chromeos { | |
| 16 | |
| 17 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.
| |
| 18 public: | |
| 19 OwnerKeyReloader(); | |
| 20 virtual ~OwnerKeyReloader(); | |
| 21 | |
| 22 // content::NotificationObserver implementation: | |
| 23 virtual void Observe(int type, | |
| 24 const content::NotificationSource& source, | |
| 25 const content::NotificationDetails& details) OVERRIDE; | |
| 26 | |
| 27 void ReloadOwnerKey(const std::string& username); | |
| 28 | |
| 29 private: | |
| 30 std::string username_; | |
| 31 | |
| 32 content::NotificationRegistrar registrar_; | |
| 33 | |
| 34 DISALLOW_COPY_AND_ASSIGN(OwnerKeyReloader); | |
| 35 }; | |
| 36 | |
| 37 } // namespace chromeos | |
| 38 | |
| 39 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_KEY_RELOADER_H_ | |
| OLD | NEW |