diff options
author | kuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-19 18:19:07 +0000 |
---|---|---|
committer | kuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-19 18:19:07 +0000 |
commit | df33e777cfc228e34896c0f961b5af6dea40af5e (patch) | |
tree | 5506bdb2f37286c661c948165c9cb01f9ef6b3c8 /chrome/installer/util/master_preferences.h | |
parent | 5ad2514a46f2e7b188389ed146494a4bbb7eda81 (diff) | |
download | chromium_src-df33e777cfc228e34896c0f961b5af6dea40af5e.zip chromium_src-df33e777cfc228e34896c0f961b5af6dea40af5e.tar.gz chromium_src-df33e777cfc228e34896c0f961b5af6dea40af5e.tar.bz2 |
Make GetDistroBooleanPreference return troolean value.
BUG=23649
TEST=installer_util_unittests, setup_unittests
Review URL: http://codereview.chromium.org/269107
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29423 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer/util/master_preferences.h')
-rw-r--r-- | chrome/installer/util/master_preferences.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/chrome/installer/util/master_preferences.h b/chrome/installer/util/master_preferences.h index 335a4ad..a809c97 100644 --- a/chrome/installer/util/master_preferences.h +++ b/chrome/installer/util/master_preferences.h @@ -65,12 +65,14 @@ extern const wchar_t kVerboseLogging[]; const wchar_t kDefaultMasterPrefs[] = L"master_preferences"; // Gets the value of given boolean preference |name| from |prefs| dictionary -// which is assumed to contain a dictionary named "distribution". +// which is assumed to contain a dictionary named "distribution". Returns +// true if the value is read successfully, otherwise false. bool GetDistroBooleanPreference(const DictionaryValue* prefs, - const std::wstring& name); + const std::wstring& name, + bool* value); -// This function gets ping delay (ping_delay in the sample above) from master -// preferences. +// This function gets value of an integer preference from master +// preferences. Returns true if the value is read successfully, otherwise false. bool GetDistroIntegerPreference(const DictionaryValue* prefs, const std::wstring& name, int* value); |