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

Unified Diff: content/renderer/pepper/host_var_tracker_unittest.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/host_var_tracker.cc ('k') | content/renderer/pepper/message_channel.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/host_var_tracker_unittest.cc
diff --git a/content/renderer/pepper/host_var_tracker_unittest.cc b/content/renderer/pepper/host_var_tracker_unittest.cc
index 32e9e56ea89bf1d105906737d12f6438cfd81204..55b6b86158c5c015d689c5522fce9d88ac384cab 100644
--- a/content/renderer/pepper/host_var_tracker_unittest.cc
+++ b/content/renderer/pepper/host_var_tracker_unittest.cc
@@ -30,7 +30,7 @@ class MyObject : public gin::Wrappable<MyObject> {
public:
static gin::WrapperInfo kWrapperInfo;
- static v8::Handle<v8::Value> Create(v8::Isolate* isolate) {
+ static v8::Local<v8::Value> Create(v8::Isolate* isolate) {
return gin::CreateHandle(isolate, new MyObject()).ToV8();
}
@@ -53,7 +53,7 @@ class PepperTryCatchForTest : public PepperTryCatch {
void SetException(const char* message) override { NOTREACHED(); }
bool HasException() override { return false; }
- v8::Handle<v8::Context> GetContext() override {
+ v8::Local<v8::Context> GetContext() override {
return instance_->GetIsolate()->GetCurrentContext();
}
@@ -112,7 +112,7 @@ TEST_F(HostVarTrackerTest, ReuseVar) {
instance()->pp_instance(), V8VarConverter::kAllowObjectVars);
PepperTryCatchForTest try_catch(instance(), &converter);
- v8::Handle<v8::Value> v8_object = MyObject::Create(v8::Isolate::GetCurrent());
+ v8::Local<v8::Value> v8_object = MyObject::Create(v8::Isolate::GetCurrent());
ppapi::ScopedPPVar pp_object1 = try_catch.FromV8(v8_object);
ppapi::ScopedPPVar pp_object2 = try_catch.FromV8(v8_object);
« no previous file with comments | « content/renderer/pepper/host_var_tracker.cc ('k') | content/renderer/pepper/message_channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698