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

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

Issue 11571014: Lazy load chrome.* APIs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: android compilation Created 7 years, 9 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 3244815186f1e3525dd42016046795cf3ffcadb1..3fa09dac2b8a1a51c4773ca5c3d19c332fbcf872 100644
--- a/chrome/renderer/extensions/sync_file_system_custom_bindings.cc
+++ b/chrome/renderer/extensions/sync_file_system_custom_bindings.cc
@@ -13,8 +13,9 @@
namespace extensions {
-SyncFileSystemCustomBindings::SyncFileSystemCustomBindings()
- : ChromeV8Extension(NULL) {
+SyncFileSystemCustomBindings::SyncFileSystemCustomBindings(
+ Dispatcher* dispatcher, v8::Handle<v8::Context> v8_context)
+ : ChromeV8Extension(dispatcher, v8_context) {
RouteFunction(
"GetSyncFileSystemObject",
base::Bind(&SyncFileSystemCustomBindings::GetSyncFileSystemObject,
@@ -47,7 +48,8 @@ v8::Handle<v8::Value> SyncFileSystemCustomBindings::GetSyncFileSystemObject(
return v8::Undefined();
}
- WebKit::WebFrame* webframe = WebKit::WebFrame::frameForCurrentContext();
+ WebKit::WebFrame* webframe =
+ WebKit::WebFrame::frameForContext(v8_context());
return webframe->createFileSystem(WebKit::WebFileSystem::TypeExternal,
WebKit::WebString::fromUTF8(name),
WebKit::WebString::fromUTF8(root_url));
« no previous file with comments | « chrome/renderer/extensions/sync_file_system_custom_bindings.h ('k') | chrome/renderer/extensions/tabs_custom_bindings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698