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

Side by Side Diff: chrome/browser/managed_mode/chromeos/managed_user_password_service.h

Issue 335833003: Rename "managed (mode|user)" to "supervised user" (part 2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments (+ a few other cleanups) Created 6 years, 6 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_MANAGED_MODE_CHROMEOS_MANAGED_USER_PASSWORD_SERVICE_H_
6 #define CHROME_BROWSER_MANAGED_MODE_CHROMEOS_MANAGED_USER_PASSWORD_SERVICE_H_
7
8 #include <string>
9
10 #include "base/compiler_specific.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "base/memory/weak_ptr.h"
13 #include "chrome/browser/managed_mode/managed_user_shared_settings_service.h"
14 #include "chrome/browser/managed_mode/managed_users.h"
15 #include "components/keyed_service/core/keyed_service.h"
16
17 namespace chromeos {
18
19 class ManagedUserPasswordService : public KeyedService {
20 public:
21 ManagedUserPasswordService();
22 virtual ~ManagedUserPasswordService();
23
24 virtual void Shutdown() OVERRIDE;
25
26 void Init(const std::string& user_id,
27 ManagedUserSharedSettingsService* service);
28 private:
29 void OnSharedSettingsChange(const std::string& mu_id, const std::string& key);
30
31 // Cached value from Init().
32 // User id of currently logged in managed user.
33 std::string user_id_;
34 ManagedUserSharedSettingsService* settings_service_;
35
36 scoped_ptr<ManagedUserSharedSettingsService::ChangeCallbackList::Subscription>
37 settings_service_subscription_;
38
39 base::WeakPtrFactory<ManagedUserPasswordService> weak_ptr_factory_;
40
41 DISALLOW_COPY_AND_ASSIGN(ManagedUserPasswordService);
42 };
43
44 } // namespace chromeos
45 #endif // CHROME_BROWSER_MANAGED_MODE_CHROMEOS_MANAGED_USER_PASSWORD_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/managed_mode/OWNERS ('k') | chrome/browser/managed_mode/chromeos/managed_user_password_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698