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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_SERVICE_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_KEY_RELOADER_SERVICE_H_
7
8 #include <string>
9
10 #include "base/macros.h"
11 #include "components/keyed_service/core/keyed_service.h"
12
13 class Profile;
14
15 namespace chromeos {
16
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.
17 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.
18 public:
19 virtual ~OwnerKeyReloaderService();
20
21 static void SetUsername(const std::string& username);
22 static std::string GetUsername();
23
24 void ReloadOwnerKey();
25
26 private:
27 friend class OwnerKeyReloaderServiceFactory;
28
29 explicit OwnerKeyReloaderService(Profile* profile);
30
31 static std::string username_;
32
33 Profile* profile_;
34
35 DISALLOW_COPY_AND_ASSIGN(OwnerKeyReloaderService);
36 };
37
38 } // namespace chromeos
39
40 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_KEY_RELOADER_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698