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

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

Issue 16032015: Extensions: pass ChromeV8Context around instead of v8::Handle. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 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/file_browser_private_custom_bindings.cc
diff --git a/chrome/renderer/extensions/file_browser_private_custom_bindings.cc b/chrome/renderer/extensions/file_browser_private_custom_bindings.cc
index 1263efcb2d0cb3aa75b725c64b693f95b84827e4..fee6815f23d35a6c25b1af8a121ae759c3fd2e6a 100644
--- a/chrome/renderer/extensions/file_browser_private_custom_bindings.cc
+++ b/chrome/renderer/extensions/file_browser_private_custom_bindings.cc
@@ -8,6 +8,7 @@
#include "base/basictypes.h"
#include "base/logging.h"
+#include "chrome/renderer/extensions/chrome_v8_context.h"
#include "grit/renderer_resources.h"
#include "third_party/WebKit/public/platform/WebFileSystem.h"
#include "third_party/WebKit/public/platform/WebFileSystemType.h"
@@ -17,7 +18,7 @@
namespace extensions {
FileBrowserPrivateCustomBindings::FileBrowserPrivateCustomBindings(
- Dispatcher* dispatcher, v8::Handle<v8::Context> context)
+ Dispatcher* dispatcher, ChromeV8Context* context)
: ChromeV8Extension(dispatcher, context) {
RouteFunction(
"GetLocalFileSystem",
@@ -33,7 +34,8 @@ v8::Handle<v8::Value> FileBrowserPrivateCustomBindings::GetLocalFileSystem(
std::string name(*v8::String::Utf8Value(args[0]));
std::string path(*v8::String::Utf8Value(args[1]));
- WebKit::WebFrame* webframe = WebKit::WebFrame::frameForContext(v8_context());
+ WebKit::WebFrame* webframe =
+ WebKit::WebFrame::frameForContext(context()->v8_context());
DCHECK(webframe);
return webframe->createFileSystem(
WebKit::WebFileSystemTypeExternal,
« no previous file with comments | « chrome/renderer/extensions/file_browser_private_custom_bindings.h ('k') | chrome/renderer/extensions/file_system_natives.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698