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

Unified Diff: chrome/renderer/extensions/page_actions_custom_bindings.cc

Issue 98543004: Remove usage of deprecated V8 APIs from c/r/extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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/renderer/extensions/page_actions_custom_bindings.cc
diff --git a/chrome/renderer/extensions/page_actions_custom_bindings.cc b/chrome/renderer/extensions/page_actions_custom_bindings.cc
index eedb036dda84aa464bcab267c190376452348661..c413d5ec68e2080ade21f839b3c0de7ea71f7705 100644
--- a/chrome/renderer/extensions/page_actions_custom_bindings.cc
+++ b/chrome/renderer/extensions/page_actions_custom_bindings.cc
@@ -31,7 +31,7 @@ void PageActionsCustomBindings::GetCurrentPageActions(
dispatcher_->extensions()->GetByID(extension_id);
CHECK(extension);
- v8::Local<v8::Array> page_action_vector = v8::Array::New();
+ v8::Local<v8::Array> page_action_vector = v8::Array::New(args.GetIsolate());
if (ActionInfo::GetPageActionInfo(extension)) {
std::string id = ActionInfo::GetPageActionInfo(extension)->id;
page_action_vector->Set(v8::Integer::New(0),

Powered by Google App Engine
This is Rietveld 408576698