diff options
author | kuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-31 21:58:49 +0000 |
---|---|---|
committer | kuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-31 21:58:49 +0000 |
commit | 582bca833f4c2cc1d255c18c54f630f47cc35186 (patch) | |
tree | 09c94a4d7b4a3a5857aedb72923476df741f3dbe | |
parent | d1572f4a4eddfb0a94e6548c8987aa76f75a2863 (diff) | |
download | chromium_src-582bca833f4c2cc1d255c18c54f630f47cc35186.zip chromium_src-582bca833f4c2cc1d255c18c54f630f47cc35186.tar.gz chromium_src-582bca833f4c2cc1d255c18c54f630f47cc35186.tar.bz2 |
eols cleanup
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22201 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/installer/util/master_preferences.cc | 16 | ||||
-rw-r--r-- | chrome/installer/util/master_preferences.h | 4 |
2 files changed, 10 insertions, 10 deletions
diff --git a/chrome/installer/util/master_preferences.cc b/chrome/installer/util/master_preferences.cc index 47123b8..c43c422 100644 --- a/chrome/installer/util/master_preferences.cc +++ b/chrome/installer/util/master_preferences.cc @@ -52,14 +52,14 @@ const wchar_t kSystemLevel[] = L"system_level"; const wchar_t kVerboseLogging[] = L"verbose_logging"; } -bool GetDistroBooleanPreference(const DictionaryValue* prefs,
- const std::wstring& name) {
+bool GetDistroBooleanPreference(const DictionaryValue* prefs, + const std::wstring& name) { - bool value = false;
+ bool value = false; DictionaryValue* distro = NULL; - if (prefs && prefs->GetDictionary(kDistroDict, &distro) && distro)
- distro->GetBoolean(name, &value);
- return value;
+ if (prefs && prefs->GetDictionary(kDistroDict, &distro) && distro) + distro->GetBoolean(name, &value); + return value; } bool GetDistributionPingDelay(const DictionaryValue* prefs, @@ -72,8 +72,8 @@ bool GetDistributionPingDelay(const DictionaryValue* prefs, *ping_delay = 90; DictionaryValue* distro = NULL; - if (!prefs || !prefs->GetDictionary(kDistroDict, &distro) || !distro)
- return false;
+ if (!prefs || !prefs->GetDictionary(kDistroDict, &distro) || !distro) + return false; if (!distro->GetInteger(master_preferences::kDistroPingDelay, ping_delay)) return false; diff --git a/chrome/installer/util/master_preferences.h b/chrome/installer/util/master_preferences.h index 44d099c..3ac4561 100644 --- a/chrome/installer/util/master_preferences.h +++ b/chrome/installer/util/master_preferences.h @@ -59,8 +59,8 @@ extern const wchar_t kVerboseLogging[]; // values in the user profile at first run. const wchar_t kDefaultMasterPrefs[] = L"master_preferences"; -bool GetDistroBooleanPreference(const DictionaryValue* prefs,
- const std::wstring& name);
+bool GetDistroBooleanPreference(const DictionaryValue* prefs, + const std::wstring& name); // This function gets ping delay (ping_delay in the sample above) from master // preferences. |