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

Unified Diff: chrome/renderer/external_extension.cc

Issue 1103273009: Use v8::Local inplace of v8::Handle in src/chrome/* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « chrome/renderer/extensions/webstore_bindings.cc ('k') | chrome/renderer/loadtimes_extension_bindings.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/external_extension.cc
diff --git a/chrome/renderer/external_extension.cc b/chrome/renderer/external_extension.cc
index 34e05c59cc186dcc844d351df62b16bfdacb80ef..3e197177d116cf4457586f114fab961737500ade 100644
--- a/chrome/renderer/external_extension.cc
+++ b/chrome/renderer/external_extension.cc
@@ -43,9 +43,9 @@ class ExternalExtensionWrapper : public v8::Extension {
// Allows v8's javascript code to call the native functions defined
// in this class for window.external.
- v8::Handle<v8::FunctionTemplate> GetNativeFunctionTemplate(
+ v8::Local<v8::FunctionTemplate> GetNativeFunctionTemplate(
v8::Isolate* isolate,
- v8::Handle<v8::String> name) override;
+ v8::Local<v8::String> name) override;
// Helper function to find the RenderView. May return NULL.
static RenderView* GetRenderView();
@@ -66,10 +66,10 @@ ExternalExtensionWrapper::ExternalExtensionWrapper()
: v8::Extension(kExternalExtensionName, kSearchProviderApi) {
}
-v8::Handle<v8::FunctionTemplate>
+v8::Local<v8::FunctionTemplate>
ExternalExtensionWrapper::GetNativeFunctionTemplate(
v8::Isolate* isolate,
- v8::Handle<v8::String> name) {
+ v8::Local<v8::String> name) {
if (name->Equals(v8::String::NewFromUtf8(isolate, "NativeAddSearchProvider")))
return v8::FunctionTemplate::New(isolate, AddSearchProvider);
@@ -78,7 +78,7 @@ ExternalExtensionWrapper::GetNativeFunctionTemplate(
return v8::FunctionTemplate::New(isolate, IsSearchProviderInstalled);
}
- return v8::Handle<v8::FunctionTemplate>();
+ return v8::Local<v8::FunctionTemplate>();
}
// static
« no previous file with comments | « chrome/renderer/extensions/webstore_bindings.cc ('k') | chrome/renderer/loadtimes_extension_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698