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: content/renderer/pepper/pepper_try_catch.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/pepper_try_catch.h ('k') | content/renderer/pepper/pepper_webplugin_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/pepper_try_catch.cc
diff --git a/content/renderer/pepper/pepper_try_catch.cc b/content/renderer/pepper/pepper_try_catch.cc
index 7f1b48d3c06e39ad338c796ec8c4860d2d130b0c..b0e1fbabe51d9fd6e456f15ef2993fb022a1d189 100644
--- a/content/renderer/pepper/pepper_try_catch.cc
+++ b/content/renderer/pepper/pepper_try_catch.cc
@@ -26,22 +26,22 @@ PepperTryCatch::PepperTryCatch(PepperPluginInstanceImpl* instance,
PepperTryCatch::~PepperTryCatch() {}
-v8::Handle<v8::Value> PepperTryCatch::ToV8(PP_Var var) {
+v8::Local<v8::Value> PepperTryCatch::ToV8(PP_Var var) {
if (HasException()) {
SetException(kConversionException);
- return v8::Handle<v8::Value>();
+ return v8::Local<v8::Value>();
}
- v8::Handle<v8::Value> result;
+ v8::Local<v8::Value> result;
bool success = var_converter_->ToV8Value(var, GetContext(), &result);
if (!success) {
SetException(kConversionException);
- return v8::Handle<v8::Value>();
+ return v8::Local<v8::Value>();
}
return result;
}
-ppapi::ScopedPPVar PepperTryCatch::FromV8(v8::Handle<v8::Value> v8_value) {
+ppapi::ScopedPPVar PepperTryCatch::FromV8(v8::Local<v8::Value> v8_value) {
if (HasException() || v8_value.IsEmpty()) {
SetException(kConversionException);
return ppapi::ScopedPPVar();
@@ -79,7 +79,7 @@ bool PepperTryCatchV8::HasException() {
return GetContext().IsEmpty() || exception_.type != PP_VARTYPE_UNDEFINED;
}
-v8::Handle<v8::Context> PepperTryCatchV8::GetContext() {
+v8::Local<v8::Context> PepperTryCatchV8::GetContext() {
// When calling from JS into the plugin always use the current context.
return instance_->GetIsolate()->GetCurrentContext();
}
@@ -164,7 +164,7 @@ bool PepperTryCatchVar::HasException() {
return exception_is_set_;
}
-v8::Handle<v8::Context> PepperTryCatchVar::GetContext() {
+v8::Local<v8::Context> PepperTryCatchVar::GetContext() {
return context_;
}
« no previous file with comments | « content/renderer/pepper/pepper_try_catch.h ('k') | content/renderer/pepper/pepper_webplugin_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698