diff options
Diffstat (limited to 'chrome/browser/chromeos/cros_settings_provider_user.h')
-rw-r--r-- | chrome/browser/chromeos/cros_settings_provider_user.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/chrome/browser/chromeos/cros_settings_provider_user.h b/chrome/browser/chromeos/cros_settings_provider_user.h index f0c5509..3fafa41 100644 --- a/chrome/browser/chromeos/cros_settings_provider_user.h +++ b/chrome/browser/chromeos/cros_settings_provider_user.h @@ -34,8 +34,12 @@ class UserCrosSettingsProvider : public CrosSettingsProvider, static const ListValue* cached_whitelist(); static std::string cached_owner(); + // Returns true if given email is in user whitelist. + // Note this function is for display purpose only and should use + // CheckWhitelist op for the real whitelist check. + static bool IsEmailInCachedWhitelist(const std::string& email); + // CrosSettingsProvider implementation. - virtual void Set(const std::string& path, Value* in_value); virtual bool Get(const std::string& path, Value** out_value) const; virtual bool HandlesSetting(const std::string& path); @@ -54,6 +58,9 @@ class UserCrosSettingsProvider : public CrosSettingsProvider, static void UpdateCachedOwner(const std::string& email); private: + // CrosSettingsProvider implementation. + virtual void DoSet(const std::string& path, Value* value); + void StartFetchingBoolSetting(const std::string& name); void StartFetchingStringSetting(const std::string& name); void StartFetchingSetting(const std::string& name); |