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

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

Issue 10917269: Use a single flag for enabling experimental WebKit features. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 3 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 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 682 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 !command_line.HasSwitch(switches::kDisableFileSystem)); 693 !command_line.HasSwitch(switches::kDisableFileSystem));
694 694
695 WebRuntimeFeatures::enableJavaScriptI18NAPI( 695 WebRuntimeFeatures::enableJavaScriptI18NAPI(
696 !command_line.HasSwitch(switches::kDisableJavaScriptI18NAPI)); 696 !command_line.HasSwitch(switches::kDisableJavaScriptI18NAPI));
697 697
698 WebRuntimeFeatures::enableGamepad(true); 698 WebRuntimeFeatures::enableGamepad(true);
699 699
700 WebRuntimeFeatures::enableQuota(true); 700 WebRuntimeFeatures::enableQuota(true);
701 701
702 WebRuntimeFeatures::enableShadowDOM( 702 WebRuntimeFeatures::enableShadowDOM(
703 command_line.HasSwitch(switches::kEnableShadowDOM)); 703 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures));
704 704
705 WebRuntimeFeatures::enableStyleScoped( 705 WebRuntimeFeatures::enableStyleScoped(
706 command_line.HasSwitch(switches::kEnableStyleScoped)); 706 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures));
707 707
708 WebRuntimeFeatures::enableCSSExclusions( 708 WebRuntimeFeatures::enableCSSExclusions(
709 command_line.HasSwitch(switches::kEnableCssExclusions)); 709 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures));
710 710
711 FOR_EACH_OBSERVER(RenderProcessObserver, observers_, WebKitInitialized()); 711 FOR_EACH_OBSERVER(RenderProcessObserver, observers_, WebKitInitialized());
712 712
713 devtools_agent_message_filter_ = new DevToolsAgentFilter(); 713 devtools_agent_message_filter_ = new DevToolsAgentFilter();
714 AddFilter(devtools_agent_message_filter_.get()); 714 AddFilter(devtools_agent_message_filter_.get());
715 715
716 if (content::GetContentClient()->renderer()-> 716 if (content::GetContentClient()->renderer()->
717 RunIdleHandlerWhenWidgetsHidden()) { 717 RunIdleHandlerWhenWidgetsHidden()) {
718 ScheduleIdleHandler(kLongIdleHandlerDelayMs); 718 ScheduleIdleHandler(kLongIdleHandlerDelayMs);
719 } 719 }
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
1147 1147
1148 scoped_refptr<base::MessageLoopProxy> 1148 scoped_refptr<base::MessageLoopProxy>
1149 RenderThreadImpl::GetFileThreadMessageLoopProxy() { 1149 RenderThreadImpl::GetFileThreadMessageLoopProxy() {
1150 DCHECK(message_loop() == MessageLoop::current()); 1150 DCHECK(message_loop() == MessageLoop::current());
1151 if (!file_thread_.get()) { 1151 if (!file_thread_.get()) {
1152 file_thread_.reset(new base::Thread("Renderer::FILE")); 1152 file_thread_.reset(new base::Thread("Renderer::FILE"));
1153 file_thread_->Start(); 1153 file_thread_->Start();
1154 } 1154 }
1155 return file_thread_->message_loop_proxy(); 1155 return file_thread_->message_loop_proxy();
1156 } 1156 }
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