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

Unified Diff: chrome/browser/extensions/api/preference/chrome_direct_setting.cc

Issue 2777063003: Stop passing raw pointers to base::Value API in c/b/chromeos and c/b/extensions (Closed)
Patch Set: Just rebased Created 3 years, 8 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/extensions/api/preference/chrome_direct_setting.cc
diff --git a/chrome/browser/extensions/api/preference/chrome_direct_setting.cc b/chrome/browser/extensions/api/preference/chrome_direct_setting.cc
index a612d302aaf542ce55deb30499021975a55ef016..db511d051b8c33481058eb09030d63471477fe48 100644
--- a/chrome/browser/extensions/api/preference/chrome_direct_setting.cc
+++ b/chrome/browser/extensions/api/preference/chrome_direct_setting.cc
@@ -39,7 +39,7 @@ ExtensionFunction::ResponseAction GetDirectSettingFunction::Run() {
const base::Value* value = preference->GetValue();
std::unique_ptr<base::DictionaryValue> result(new base::DictionaryValue);
- result->Set(preference_api_constants::kValue, value->DeepCopy());
+ result->Set(preference_api_constants::kValue, value->CreateDeepCopy());
return RespondNow(OneArgument(std::move(result)));
}

Powered by Google App Engine
This is Rietveld 408576698