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

Unified Diff: content/renderer/pepper/pepper_plugin_instance_impl.cc

Issue 1113783002: Use Local instead of Handle in src/content/* (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 | « content/renderer/pepper/message_channel.cc ('k') | content/renderer/pepper/pepper_try_catch.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/pepper_plugin_instance_impl.cc
diff --git a/content/renderer/pepper/pepper_plugin_instance_impl.cc b/content/renderer/pepper/pepper_plugin_instance_impl.cc
index 00e2f0508be54c77aee19816e6b11e8061f28039..889951e5e77a0033d565cc2bf87ebe274ff9da33 100644
--- a/content/renderer/pepper/pepper_plugin_instance_impl.cc
+++ b/content/renderer/pepper/pepper_plugin_instance_impl.cc
@@ -643,16 +643,16 @@ void PepperPluginInstanceImpl::MessageChannelDestroyed() {
v8::Local<v8::Context> PepperPluginInstanceImpl::GetMainWorldContext() {
if (!container_)
- return v8::Handle<v8::Context>();
+ return v8::Local<v8::Context>();
if (container_->element().isNull())
- return v8::Handle<v8::Context>();
+ return v8::Local<v8::Context>();
if (container_->element().document().isNull())
- return v8::Handle<v8::Context>();
+ return v8::Local<v8::Context>();
if (!container_->element().document().frame())
- return v8::Handle<v8::Context>();
+ return v8::Local<v8::Context>();
v8::Local<v8::Context> context =
container_->element().document().frame()->mainWorldScriptContext();
@@ -675,7 +675,7 @@ void PepperPluginInstanceImpl::Delete() {
// destroy it. We want to do this prior to calling DidDestroy in case the
// destructor of the instance object tries to use the instance.
if (message_channel_)
- message_channel_->SetPassthroughObject(v8::Handle<v8::Object>());
+ message_channel_->SetPassthroughObject(v8::Local<v8::Object>());
// If this is a NaCl plugin instance, shut down the NaCl plugin by calling
// its DidDestroy. Don't call DidDestroy on the untrusted plugin instance,
// since there is little that it can do at this point.
@@ -2408,7 +2408,7 @@ PP_Var PepperPluginInstanceImpl::ExecuteScript(PP_Instance instance,
std::string script_string = script_string_var->value();
blink::WebScriptSource script(
blink::WebString::fromUTF8(script_string.c_str()));
- v8::Handle<v8::Value> result;
+ v8::Local<v8::Value> result;
if (IsProcessingUserGesture()) {
blink::WebScopedUserGesture user_gesture(CurrentUserGestureToken());
result = frame->executeScriptAndReturnValue(script);
« no previous file with comments | « content/renderer/pepper/message_channel.cc ('k') | content/renderer/pepper/pepper_try_catch.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698