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

Unified Diff: chrome/browser/ui/webui/options/chromeos/system_settings_provider.cc

Issue 7661009: base: Add Is* functions to Value class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tony review Created 9 years, 4 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/ui/webui/options/chromeos/system_settings_provider.cc
diff --git a/chrome/browser/ui/webui/options/chromeos/system_settings_provider.cc b/chrome/browser/ui/webui/options/chromeos/system_settings_provider.cc
index d91253dec6af569f228701c36f6e32d8a95e8080..c7dfd1782e31c71aa74c735b33300e99592b3960 100644
--- a/chrome/browser/ui/webui/options/chromeos/system_settings_provider.cc
+++ b/chrome/browser/ui/webui/options/chromeos/system_settings_provider.cc
@@ -201,8 +201,7 @@ void SystemSettingsProvider::DoSet(const std::string& path, Value* in_value) {
if (path == kSystemTimezone) {
string16 value;
- if (!in_value || !in_value->IsType(Value::TYPE_STRING) ||
- !in_value->GetAsString(&value))
+ if (!in_value || !in_value->IsString() || !in_value->GetAsString(&value))
return;
const icu::TimeZone* timezone = GetTimezone(value);
if (!timezone)
« no previous file with comments | « chrome/browser/ui/webui/ntp/most_visited_handler.cc ('k') | chrome/browser/ui/webui/options/core_options_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698