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

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

Issue 8091002: PART2: Make SignedSettings use proper Value types instead of string all around the place. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased on ToT and made clang happy. Created 9 years, 2 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 3939ab6a7f741aa3eec9cf79da43d69b8ed1417b..ee5dafa485052c6a7f51a608930ab0f1fcacabce 100644
--- a/chrome/browser/ui/webui/options/chromeos/system_settings_provider.cc
+++ b/chrome/browser/ui/webui/options/chromeos/system_settings_provider.cc
@@ -194,15 +194,15 @@ SystemSettingsProvider::~SystemSettingsProvider() {
STLDeleteElements(&timezones_);
}
-void SystemSettingsProvider::DoSet(const std::string& path, Value* in_value) {
+void SystemSettingsProvider::DoSet(const std::string& path,
+ const base::Value& in_value) {
// Non-guest users can change the time zone.
if (UserManager::Get()->IsLoggedInAsGuest())
return;
if (path == kSystemTimezone) {
string16 value;
- if (!in_value || !in_value->IsType(Value::TYPE_STRING) ||
- !in_value->GetAsString(&value))
+ if (!in_value.IsType(Value::TYPE_STRING) || !in_value.GetAsString(&value))
return;
const icu::TimeZone* timezone = GetTimezone(value);
if (!timezone)

Powered by Google App Engine
This is Rietveld 408576698