summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/renderer_webkitclient_impl.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/renderer/renderer_webkitclient_impl.cc b/chrome/renderer/renderer_webkitclient_impl.cc
index 612277b..d671a3f 100644
--- a/chrome/renderer/renderer_webkitclient_impl.cc
+++ b/chrome/renderer/renderer_webkitclient_impl.cc
@@ -368,7 +368,12 @@ long long RendererWebKitClientImpl::databaseGetFileSize(
WebKit::WebSharedWorkerRepository*
RendererWebKitClientImpl::sharedWorkerRepository() {
+ if (CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableSharedWorkers)) {
return &shared_worker_repository_;
+ } else {
+ return NULL;
+ }
}
//------------------------------------------------------------------------------