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

Side by Side Diff: chrome/browser/chromeos/user_cros_settings_provider.h

Issue 8163011: PART3: Removed whitelist special ops. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased on the new PART2. (I think it should be 100% the same but I'd rather upload it) Created 9 years, 2 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
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_USER_CROS_SETTINGS_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_USER_CROS_SETTINGS_PROVIDER_H_
6 #define CHROME_BROWSER_CHROMEOS_USER_CROS_SETTINGS_PROVIDER_H_ 6 #define CHROME_BROWSER_CHROMEOS_USER_CROS_SETTINGS_PROVIDER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 24 matching lines...) Expand all
35 35
36 // Reloads values from device settings. 36 // Reloads values from device settings.
37 void Reload(); 37 void Reload();
38 38
39 // CrosSettingsProvider implementation. 39 // CrosSettingsProvider implementation.
40 virtual const base::Value* Get(const std::string& path) const OVERRIDE; 40 virtual const base::Value* Get(const std::string& path) const OVERRIDE;
41 virtual bool GetTrusted(const std::string& path, 41 virtual bool GetTrusted(const std::string& path,
42 const base::Closure& callback) const OVERRIDE; 42 const base::Closure& callback) const OVERRIDE;
43 virtual bool HandlesSetting(const std::string& path) const OVERRIDE; 43 virtual bool HandlesSetting(const std::string& path) const OVERRIDE;
44 44
45 static void WhitelistUser(const std::string& email);
46 static void UnwhitelistUser(const std::string& email);
47
48 // Updates cached value of the owner. 45 // Updates cached value of the owner.
49 static void UpdateCachedOwner(const std::string& email); 46 static void UpdateCachedOwner(const std::string& email);
50 47
51 private: 48 private:
52 // CrosSettingsProvider implementation. 49 // CrosSettingsProvider implementation.
53 virtual void DoSet(const std::string& path, 50 virtual void DoSet(const std::string& path,
54 const base::Value& value) OVERRIDE; 51 const base::Value& value) OVERRIDE;
55 52
56 DISALLOW_COPY_AND_ASSIGN(UserCrosSettingsProvider); 53 DISALLOW_COPY_AND_ASSIGN(UserCrosSettingsProvider);
57 }; 54 };
58 55
59 } // namespace chromeos 56 } // namespace chromeos
60 57
61 #endif // CHROME_BROWSER_CHROMEOS_USER_CROS_SETTINGS_PROVIDER_H_ 58 #endif // CHROME_BROWSER_CHROMEOS_USER_CROS_SETTINGS_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698