diff options
| author | satorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-01 06:56:44 +0000 |
|---|---|---|
| committer | satorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-01 06:56:44 +0000 |
| commit | 1f82195650ce727134f859229813240e4446f4ad (patch) | |
| tree | 0d625249558709f6dae2eb3fd5e1a70e84651305 /chrome/browser/chromeos/cros_settings_provider.h | |
| parent | 9cc688d8459548d09a9efdd9e1e626c40f3b5b34 (diff) | |
| download | chromium_src-1f82195650ce727134f859229813240e4446f4ad.zip chromium_src-1f82195650ce727134f859229813240e4446f4ad.tar.gz chromium_src-1f82195650ce727134f859229813240e4446f4ad.tar.bz2 | |
Prohibit the guest from making any changes to the cros settings.
We should not allow the guest to change global settings.
TEST=confirmed that the stats/crash reporting setting worked as before
BUG=chromium-os:8239
Review URL: http://codereview.chromium.org/4197007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64579 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/cros_settings_provider.h')
| -rw-r--r-- | chrome/browser/chromeos/cros_settings_provider.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/chromeos/cros_settings_provider.h b/chrome/browser/chromeos/cros_settings_provider.h index c069ce1..36e856e 100644 --- a/chrome/browser/chromeos/cros_settings_provider.h +++ b/chrome/browser/chromeos/cros_settings_provider.h @@ -17,7 +17,7 @@ class CrosSettingsProvider { // Sets |in_value| to given |path| in cros settings. // Note that this takes ownership of |in_value|. - virtual void Set(const std::string& path, Value* in_value) = 0; + void Set(const std::string& path, Value* in_value); // Gets settings value of given |path| to |out_value|. // Note that |out_value| is still owned by this class. @@ -25,6 +25,10 @@ class CrosSettingsProvider { // Gets the namespace prefix provided by this provider virtual bool HandlesSetting(const std::string& path) = 0; + + private: + // Does the real job for Set(). + virtual void DoSet(const std::string& path, Value* in_value) = 0; }; } // namespace chromeos |
