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

Unified Diff: chrome/browser/automation/testing_automation_provider_chromeos.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/automation/testing_automation_provider_chromeos.cc
diff --git a/chrome/browser/automation/testing_automation_provider_chromeos.cc b/chrome/browser/automation/testing_automation_provider_chromeos.cc
index b462e0ed9cc4bee0f4774436e5a59a2d586f58df..c5fb535ad63cf074b621ccf774251edd29b127a7 100644
--- a/chrome/browser/automation/testing_automation_provider_chromeos.cc
+++ b/chrome/browser/automation/testing_automation_provider_chromeos.cc
@@ -522,7 +522,7 @@ void TestingAutomationProvider::SetProxySettings(DictionaryValue* args,
IPC::Message* reply_message) {
Mattias Nissler (ping if slow) 2011/10/07 11:02:57 drive-by nit: indentation?
pastarmovj 2011/10/13 11:25:06 Done.
AutomationJSONReply reply(this, reply_message);
std::string key;
- Value* value;
+ base::Value* value;
if (!args->GetString("key", &key) || !args->Get("value", &value)) {
reply.SendError("Invalid or missing args.");
return;
@@ -532,7 +532,7 @@ void TestingAutomationProvider::SetProxySettings(DictionaryValue* args,
setting_path.append(key);
// ProxyCrosSettingsProvider will own the Value* passed to Set().
- chromeos::CrosSettings::Get()->Set(setting_path, value->DeepCopy());
+ chromeos::CrosSettings::Get()->Set(setting_path, *value);
Mattias Nissler (ping if slow) 2011/10/07 11:02:57 Either the code is wrong or the comment is wrong.
pastarmovj 2011/10/13 11:25:06 Comment is wrong the object is not owned by the pr
reply.SendSuccess(NULL);
}

Powered by Google App Engine
This is Rietveld 408576698