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

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

Issue 6852031: Proactively preventing build break when https://bugs.webkit.org/show_bug.cgi?id=58456 lands. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/extensions/extension_process_bindings.cc
===================================================================
--- chrome/renderer/extensions/extension_process_bindings.cc (revision 81576)
+++ chrome/renderer/extensions/extension_process_bindings.cc (working copy)
@@ -315,9 +315,15 @@
std::string path(*v8::String::Utf8Value(args[1]));
WebFrame* webframe = WebFrame::frameForCurrentContext();
+#ifdef WEB_FILE_SYSTEM_TYPE_EXTERNAL
+ return webframe->createFileSystem(WebKit::WebFileSystem::TypeExternal,
+ WebKit::WebString::fromUTF8(name.c_str()),
+ WebKit::WebString::fromUTF8(path.c_str()));
+#else
return webframe->createFileSystem(fileapi::kFileSystemTypeLocal,
WebKit::WebString::fromUTF8(name.c_str()),
WebKit::WebString::fromUTF8(path.c_str()));
+#endif
}
// Creates a new messaging channel to the tab with the given ID.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698