Index: chrome/browser/chromeos/extensions/echo_private_api.cc |
diff --git a/chrome/browser/chromeos/extensions/echo_private_api.cc b/chrome/browser/chromeos/extensions/echo_private_api.cc |
index 1aa9a89707eb1fe28605ba50ba701ab7d6b69f7c..7b74050fe8ba40511406ebc98a26f79a5329adb5 100644 |
--- a/chrome/browser/chromeos/extensions/echo_private_api.cc |
+++ b/chrome/browser/chromeos/extensions/echo_private_api.cc |
@@ -97,12 +97,12 @@ bool EchoPrivateSetOfferInfoFunction::RunSync() { |
EXTENSION_FUNCTION_VALIDATE(params); |
const std::string& service_id = params->id; |
- base::DictionaryValue* dict = params->offer_info. |
- additional_properties.DeepCopyWithoutEmptyChildren(); |
+ scoped_ptr<base::DictionaryValue> dict = |
+ params->offer_info.additional_properties.DeepCopyWithoutEmptyChildren(); |
PrefService* local_state = g_browser_process->local_state(); |
DictionaryPrefUpdate offer_update(local_state, prefs::kEchoCheckedOffers); |
- offer_update->SetWithoutPathExpansion("echo." + service_id, dict); |
+ offer_update->SetWithoutPathExpansion("echo." + service_id, dict.Pass()); |
return true; |
} |