summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-03 01:56:04 +0000
committerkinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-03 01:56:04 +0000
commit4c56ef5fbed46794f2b16b9f8ed88ac179d65309 (patch)
treec1bfc6a198ce9ba7acee249e7843971fc4a9c325
parentc27072729000b703a955a9c8e9bfe3b7085c2dc5 (diff)
downloadchromium_src-4c56ef5fbed46794f2b16b9f8ed88ac179d65309.zip
chromium_src-4c56ef5fbed46794f2b16b9f8ed88ac179d65309.tar.gz
chromium_src-4c56ef5fbed46794f2b16b9f8ed88ac179d65309.tar.bz2
Add command-line switch to enable FileSystem API support.
This doesn't set the flag for workers. BUG=32277 TEST=none; to be added when we have complete implementation. Review URL: http://codereview.chromium.org/3240006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58453 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--build/features_override.gypi2
-rw-r--r--chrome/browser/renderer_host/browser_render_process_host.cc1
-rw-r--r--chrome/common/chrome_switches.cc3
-rw-r--r--chrome/common/chrome_switches.h1
-rw-r--r--chrome/renderer/render_thread.cc3
5 files changed, 9 insertions, 1 deletions
diff --git a/build/features_override.gypi b/build/features_override.gypi
index a453cce..6c38efa 100644
--- a/build/features_override.gypi
+++ b/build/features_override.gypi
@@ -21,7 +21,7 @@
'ENABLE_DIRECTORY_UPLOAD=1',
'ENABLE_DOM_STORAGE=1',
'ENABLE_EVENTSOURCE=1',
- 'ENABLE_FILE_READER=1',
+ 'ENABLE_FILE_SYSTEM=1',
'ENABLE_FILTERS=1',
'ENABLE_GEOLOCATION=1',
'ENABLE_ICONDATABASE=0',
diff --git a/chrome/browser/renderer_host/browser_render_process_host.cc b/chrome/browser/renderer_host/browser_render_process_host.cc
index 0a891a3..c5aad28 100644
--- a/chrome/browser/renderer_host/browser_render_process_host.cc
+++ b/chrome/browser/renderer_host/browser_render_process_host.cc
@@ -579,6 +579,7 @@ void BrowserRenderProcessHost::PropagateBrowserCommandLineToRenderer(
switches::kPrelaunchGpuProcess,
switches::kEnableAcceleratedCompositing,
switches::kEnableAcceleratedDecoding,
+ switches::kEnableFileSystem,
};
renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames,
arraysize(kSwitchNames));
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc
index b05292d..e993cbf 100644
--- a/chrome/common/chrome_switches.cc
+++ b/chrome/common/chrome_switches.cc
@@ -404,6 +404,9 @@ const char kEnableFastback[] = "enable-fastback";
// testing, for example page cycler and layout tests. See bug 1157243.
const char kEnableFileCookies[] = "enable-file-cookies";
+// Enable the FileSystem API.
+const char kEnableFileSystem[] = "enable-file-system";
+
// Enable the Indexed Database API.
const char kEnableIndexedDatabase[] = "enable-indexed-database";
diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h
index 0cc1a37..13c7344 100644
--- a/chrome/common/chrome_switches.h
+++ b/chrome/common/chrome_switches.h
@@ -127,6 +127,7 @@ extern const char kEnableExperimentalWebGL[];
extern const char kEnableExtensionTimelineApi[];
extern const char kEnableFastback[];
extern const char kEnableFileCookies[];
+extern const char kEnableFileSystem[];
extern const char kEnableGPUPlugin[];
extern const char kEnableGPURendering[];
extern const char kEnableIndexedDatabase[];
diff --git a/chrome/renderer/render_thread.cc b/chrome/renderer/render_thread.cc
index 4682c6b..851d931 100644
--- a/chrome/renderer/render_thread.cc
+++ b/chrome/renderer/render_thread.cc
@@ -959,6 +959,9 @@ void RenderThread::EnsureWebKitInitialized() {
!command_line.HasSwitch(switches::kDisableDeviceOrientation));
WebRuntimeFeatures::enableSpeechInput(IsSpeechInputEnabled(command_line));
+
+ WebRuntimeFeatures::enableFileSystem(
+ command_line.HasSwitch(switches::kEnableFileSystem));
}
void RenderThread::IdleHandler() {