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

Unified Diff: content/renderer/render_view_impl.cc

Issue 803813003: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/render_view_browsertest.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 324bbdfa98204918472e73b0ba2e8236f154119b..3d7d397a4370462f991dd68d86e9451e17f72e85 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -389,7 +389,8 @@ static bool DeviceScaleEnsuresTextQuality(float device_scale_factor) {
static bool PreferCompositingToLCDText(CompositorDependencies* compositor_deps,
float device_scale_factor) {
- const CommandLine& command_line = *CommandLine::ForCurrentProcess();
+ const base::CommandLine& command_line =
+ *base::CommandLine::ForCurrentProcess();
if (command_line.HasSwitch(switches::kDisablePreferCompositingToLCDText))
return false;
if (command_line.HasSwitch(switches::kEnablePreferCompositingToLCDText))
@@ -693,7 +694,8 @@ void RenderViewImpl::Initialize(const ViewMsg_New_Params& params,
webwidget_ = WebView::create(this);
webwidget_mouse_lock_target_.reset(new WebWidgetLockTarget(webwidget_));
- const CommandLine& command_line = *CommandLine::ForCurrentProcess();
+ const base::CommandLine& command_line =
+ *base::CommandLine::ForCurrentProcess();
if (command_line.HasSwitch(switches::kStatsCollectionController))
stats_collection_observer_.reset(new StatsCollectionObserver(this));
@@ -2078,8 +2080,9 @@ void RenderViewImpl::initializeLayerTreeView() {
#if defined(OS_MACOSX) && !defined(OS_IOS)
// Development flag because many events are still unhandled on Mac.
// http://crbug.com/138003
- use_threaded_event_handling = CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableThreadedEventHandlingMac);
+ use_threaded_event_handling =
+ base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableThreadedEventHandlingMac);
#endif
if (use_threaded_event_handling) {
RenderThreadImpl* render_thread = RenderThreadImpl::current();
@@ -2294,7 +2297,8 @@ NavigationState* RenderViewImpl::CreateNavigationStateFromPending() {
return navigation_state;
}
-void RenderViewImpl::ProcessViewLayoutFlags(const CommandLine& command_line) {
+void RenderViewImpl::ProcessViewLayoutFlags(
+ const base::CommandLine& command_line) {
bool enable_viewport =
command_line.HasSwitch(switches::kEnableViewport) ||
command_line.HasSwitch(switches::kEnableViewportMeta);
@@ -2322,7 +2326,8 @@ void RenderViewImpl::didClearWindowObject(WebLocalFrame* frame) {
if (enabled_bindings_ & BINDINGS_POLICY_STATS_COLLECTION)
StatsCollectionController::Install(frame);
- const CommandLine& command_line = *CommandLine::ForCurrentProcess();
+ const base::CommandLine& command_line =
+ *base::CommandLine::ForCurrentProcess();
if (command_line.HasSwitch(switches::kEnableSkiaBenchmarking))
SkiaBenchmarking::Install(frame);
« no previous file with comments | « content/renderer/render_view_browsertest.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698