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

Side by Side Diff: chrome/browser/chromeos/login/owner_settings_service.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 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_SETTINGS_SERVICE_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_SETTINGS_SERVICE_H_
7
8 #include "base/macros.h"
9 #include "base/memory/weak_ptr.h"
10 #include "components/keyed_service/core/keyed_service.h"
11
12 class Profile;
13
14 namespace chromeos {
15
16 // This class reloads owner key from profile slots.
Nikita (slow) 2014/05/15 12:48:58 nit: from profile NSS slots?
ygorshenin1 2014/05/16 12:09:37 Done.
17 //
18 // TODO (ygorshenin@): move write path for device settings here
Nikita (slow) 2014/05/15 12:48:58 nit: If this is planned as a refactoring, I sugges
ygorshenin1 2014/05/16 12:09:37 It's not a refactoring --- it's a main task for cr
19 // (crbug.com/230018).
20 class OwnerSettingsService : public KeyedService {
21 public:
22 virtual ~OwnerSettingsService();
23
24 private:
25 friend class OwnerSettingsServiceFactory;
26
27 explicit OwnerSettingsService(Profile* profile);
28
29 void ReloadOwnerKey();
30
31 Profile* profile_;
32
33 base::WeakPtrFactory<OwnerSettingsService> weak_factory_;
34
35 DISALLOW_COPY_AND_ASSIGN(OwnerSettingsService);
36 };
37
38 } // namespace chromeos
39
40 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_SETTINGS_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698