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

Unified Diff: content/shell/renderer/binding_helpers.h

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/web_ui_runner.cc ('k') | content/shell/renderer/layout_test/gc_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/binding_helpers.h
diff --git a/content/shell/renderer/binding_helpers.h b/content/shell/renderer/binding_helpers.h
index e2fffa700013743b3d6a733beabddf8bd2ef8b55..738702151448b9835d6c71c9ad948989072b9a9b 100644
--- a/content/shell/renderer/binding_helpers.h
+++ b/content/shell/renderer/binding_helpers.h
@@ -22,7 +22,7 @@ void InstallAsWindowProperties(WrappedClass* wrapped,
const std::vector<std::string>& names) {
v8::Isolate* isolate = blink::mainThreadIsolate();
v8::HandleScope handle_scope(isolate);
- v8::Handle<v8::Context> context = frame->mainWorldScriptContext();
+ v8::Local<v8::Context> context = frame->mainWorldScriptContext();
if (context.IsEmpty())
return;
@@ -31,8 +31,8 @@ void InstallAsWindowProperties(WrappedClass* wrapped,
gin::Handle<WrappedClass> bindings = gin::CreateHandle(isolate, wrapped);
if (bindings.IsEmpty())
return;
- v8::Handle<v8::Object> global = context->Global();
- v8::Handle<v8::Value> v8_bindings = bindings.ToV8();
+ v8::Local<v8::Object> global = context->Global();
+ v8::Local<v8::Value> v8_bindings = bindings.ToV8();
for (size_t i = 0; i < names.size(); ++i)
global->Set(gin::StringToV8(isolate, names[i].c_str()), v8_bindings);
}
« no previous file with comments | « content/renderer/web_ui_runner.cc ('k') | content/shell/renderer/layout_test/gc_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698