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

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

Issue 10832183: Add CSS exclusions command-line switch (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Adding alternate email to AUTHORS file Created 8 years, 4 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
« 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 602 matching lines...) Expand 10 before | Expand all | Expand 10 after
613 WebRuntimeFeatures::enableGamepad(true); 613 WebRuntimeFeatures::enableGamepad(true);
614 614
615 WebRuntimeFeatures::enableQuota(true); 615 WebRuntimeFeatures::enableQuota(true);
616 616
617 WebRuntimeFeatures::enableShadowDOM( 617 WebRuntimeFeatures::enableShadowDOM(
618 command_line.HasSwitch(switches::kEnableShadowDOM)); 618 command_line.HasSwitch(switches::kEnableShadowDOM));
619 619
620 WebRuntimeFeatures::enableStyleScoped( 620 WebRuntimeFeatures::enableStyleScoped(
621 command_line.HasSwitch(switches::kEnableStyleScoped)); 621 command_line.HasSwitch(switches::kEnableStyleScoped));
622 622
623 WebRuntimeFeatures::enableCSSExclusions(
624 command_line.HasSwitch(switches::kEnableCssExclusions));
625
623 FOR_EACH_OBSERVER(RenderProcessObserver, observers_, WebKitInitialized()); 626 FOR_EACH_OBSERVER(RenderProcessObserver, observers_, WebKitInitialized());
624 627
625 if (content::GetContentClient()->renderer()-> 628 if (content::GetContentClient()->renderer()->
626 RunIdleHandlerWhenWidgetsHidden()) { 629 RunIdleHandlerWhenWidgetsHidden()) {
627 ScheduleIdleHandler(kLongIdleHandlerDelayMs); 630 ScheduleIdleHandler(kLongIdleHandlerDelayMs);
628 } 631 }
629 } 632 }
630 633
631 void RenderThreadImpl::RegisterSchemes() { 634 void RenderThreadImpl::RegisterSchemes() {
632 // swappedout: pages should not be accessible, and should also 635 // swappedout: pages should not be accessible, and should also
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
1046 1049
1047 scoped_refptr<base::MessageLoopProxy> 1050 scoped_refptr<base::MessageLoopProxy>
1048 RenderThreadImpl::GetFileThreadMessageLoopProxy() { 1051 RenderThreadImpl::GetFileThreadMessageLoopProxy() {
1049 DCHECK(message_loop() == MessageLoop::current()); 1052 DCHECK(message_loop() == MessageLoop::current());
1050 if (!file_thread_.get()) { 1053 if (!file_thread_.get()) {
1051 file_thread_.reset(new base::Thread("Renderer::FILE")); 1054 file_thread_.reset(new base::Thread("Renderer::FILE"));
1052 file_thread_->Start(); 1055 file_thread_->Start();
1053 } 1056 }
1054 return file_thread_->message_loop_proxy(); 1057 return file_thread_->message_loop_proxy();
1055 } 1058 }
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