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

Unified Diff: chrome/browser/chromeos/cros_settings_provider_user.h

Issue 3413021: Implement users options handling in login screen. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: for tfarina,dpolukhin,nkostylev #1 Created 10 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/cros_settings_provider_user.h
diff --git a/chrome/browser/chromeos/cros_settings_provider_user.h b/chrome/browser/chromeos/cros_settings_provider_user.h
index 0a1792c4d6eb0a0eadde63447231ca6eb86fbd0f..4f74410180fb794545751d818edd62c010aad4dd 100644
--- a/chrome/browser/chromeos/cros_settings_provider_user.h
+++ b/chrome/browser/chromeos/cros_settings_provider_user.h
@@ -9,11 +9,11 @@
#include <string>
#include "base/basictypes.h"
-#include "base/scoped_ptr.h"
#include "chrome/browser/chromeos/cros_settings_provider.h"
#include "chrome/browser/chromeos/login/signed_settings_helper.h"
-class DictionaryValue;
+class ListValue;
+class PrefService;
namespace chromeos {
@@ -23,6 +23,15 @@ class UserCrosSettingsProvider : public CrosSettingsProvider,
UserCrosSettingsProvider();
virtual ~UserCrosSettingsProvider();
+ // Registers cached users settings in preferences.
+ static void RegisterPrefs(PrefService* local_state);
+
+ // Helper functions to access cached settings.
+ static bool cached_allow_bwsi();
+ static bool cached_allow_guest();
+ static bool cached_show_users_on_signin();
+ static const ListValue* cached_whitelist();
+
// CrosSettingsProvider implementation.
virtual void Set(const std::string& path, Value* in_value);
virtual bool Get(const std::string& path, Value** out_value) const;
@@ -40,10 +49,9 @@ class UserCrosSettingsProvider : public CrosSettingsProvider,
void UnwhitelistUser(const std::string& email);
private:
- void StartFetchingBoolSetting(const std::string& name, bool default_value);
- void LoadUserWhitelist();
+ void StartFetchingBoolSetting(const std::string& name);
+ ListValue* GetUserWhitelist() const;
- scoped_ptr<DictionaryValue> cache_;
bool current_user_is_owner_;
DISALLOW_COPY_AND_ASSIGN(UserCrosSettingsProvider);

Powered by Google App Engine
This is Rietveld 408576698