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

Side by Side Diff: content/renderer/render_thread_impl.cc

Issue 8789004: Repurpose obsolete IndexedDB commandline switch to control idb for workers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase onto ToT Created 9 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/public/common/content_switches.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/render_thread_impl.h" 5 #include "content/renderer/render_thread_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 483
484 WebRuntimeFeatures::enableNotifications( 484 WebRuntimeFeatures::enableNotifications(
485 !command_line.HasSwitch(switches::kDisableDesktopNotifications)); 485 !command_line.HasSwitch(switches::kDisableDesktopNotifications));
486 486
487 WebRuntimeFeatures::enableLocalStorage( 487 WebRuntimeFeatures::enableLocalStorage(
488 !command_line.HasSwitch(switches::kDisableLocalStorage)); 488 !command_line.HasSwitch(switches::kDisableLocalStorage));
489 WebRuntimeFeatures::enableSessionStorage( 489 WebRuntimeFeatures::enableSessionStorage(
490 !command_line.HasSwitch(switches::kDisableSessionStorage)); 490 !command_line.HasSwitch(switches::kDisableSessionStorage));
491 491
492 WebRuntimeFeatures::enableIndexedDatabase( 492 WebRuntimeFeatures::enableIndexedDatabase(
493 !command_line.HasSwitch(switches::kDisableIndexedDatabase)); 493 command_line.HasSwitch(switches::kEnableIndexedDBForWorkers));
494 494
495 WebRuntimeFeatures::enableGeolocation( 495 WebRuntimeFeatures::enableGeolocation(
496 !command_line.HasSwitch(switches::kDisableGeolocation)); 496 !command_line.HasSwitch(switches::kDisableGeolocation));
497 497
498 WebKit::WebRuntimeFeatures::enableMediaSource( 498 WebKit::WebRuntimeFeatures::enableMediaSource(
499 command_line.HasSwitch(switches::kEnableMediaSource)); 499 command_line.HasSwitch(switches::kEnableMediaSource));
500 500
501 WebKit::WebRuntimeFeatures::enableMediaStream( 501 WebKit::WebRuntimeFeatures::enableMediaStream(
502 command_line.HasSwitch(switches::kEnableMediaStream)); 502 command_line.HasSwitch(switches::kEnableMediaStream));
503 503
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
857 857
858 scoped_refptr<base::MessageLoopProxy> 858 scoped_refptr<base::MessageLoopProxy>
859 RenderThreadImpl::GetFileThreadMessageLoopProxy() { 859 RenderThreadImpl::GetFileThreadMessageLoopProxy() {
860 DCHECK(message_loop() == MessageLoop::current()); 860 DCHECK(message_loop() == MessageLoop::current());
861 if (!file_thread_.get()) { 861 if (!file_thread_.get()) {
862 file_thread_.reset(new base::Thread("Renderer::FILE")); 862 file_thread_.reset(new base::Thread("Renderer::FILE"));
863 file_thread_->Start(); 863 file_thread_->Start();
864 } 864 }
865 return file_thread_->message_loop_proxy(); 865 return file_thread_->message_loop_proxy();
866 } 866 }
OLDNEW
« no previous file with comments | « content/public/common/content_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698