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

Unified Diff: extensions/browser/script_executor.cc

Issue 2323993004: Remove use of deprecated base::ListValue::Append(Value*) overload in extensions. (Closed)
Patch Set: Less explosions Created 4 years, 3 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: extensions/browser/script_executor.cc
diff --git a/extensions/browser/script_executor.cc b/extensions/browser/script_executor.cc
index 230bca3b3f885b2dae5fcfd6731d4402141536af..28d5a773c4592017d4dbb8fb5a00ba152514ce3e 100644
--- a/extensions/browser/script_executor.cc
+++ b/extensions/browser/script_executor.cc
@@ -143,7 +143,7 @@ class Handler : public content::WebContentsObserver {
if (is_root_frame && !results_.empty())
CHECK(results_.Insert(0u, script_value->DeepCopy()));
else
- results_.Append(script_value->DeepCopy());
+ results_.Append(script_value->CreateDeepCopy());
}
if (is_root_frame) { // Only use the root frame's error and url.

Powered by Google App Engine
This is Rietveld 408576698