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

Unified Diff: chrome/renderer/extensions/sync_file_system_custom_bindings.cc

Issue 1174343003: blink:bindings: Passes the global context instead of |this| in JS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
Index: chrome/renderer/extensions/sync_file_system_custom_bindings.cc
diff --git a/chrome/renderer/extensions/sync_file_system_custom_bindings.cc b/chrome/renderer/extensions/sync_file_system_custom_bindings.cc
index d278707547db1acfa44dd23b34afc0d9b1025c0f..c4314831937f6ffde100d32c56874e36bc6191e2 100644
--- a/chrome/renderer/extensions/sync_file_system_custom_bindings.cc
+++ b/chrome/renderer/extensions/sync_file_system_custom_bindings.cc
@@ -56,7 +56,7 @@ void SyncFileSystemCustomBindings::GetSyncFileSystemObject(
blink::WebFileSystemTypeExternal,
blink::WebString::fromUTF8(name),
GURL(root_url))
- .toV8Value(args.Holder(), args.GetIsolate()));
+ .toV8Value(context()->v8_context()->Global(), args.GetIsolate()));
}
} // namespace extensions
« no previous file with comments | « chrome/renderer/extensions/page_capture_custom_bindings.cc ('k') | extensions/renderer/app_runtime_custom_bindings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698