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

Unified Diff: content/browser/gpu/gpu_data_manager_impl_private.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
Index: content/browser/gpu/gpu_data_manager_impl_private.cc
diff --git a/content/browser/gpu/gpu_data_manager_impl_private.cc b/content/browser/gpu/gpu_data_manager_impl_private.cc
index db676c4382d0175cb8e9cb80c4576a681f488159..b3b1627a78f5c6180a32abf66f36e9b46641753d 100644
--- a/content/browser/gpu/gpu_data_manager_impl_private.cc
+++ b/content/browser/gpu/gpu_data_manager_impl_private.cc
@@ -412,7 +412,7 @@ void GpuDataManagerImplPrivate::RegisterSwiftShaderPath(
bool GpuDataManagerImplPrivate::ShouldUseWarp() const {
return use_warp_ ||
- CommandLine::ForCurrentProcess()->HasSwitch(switches::kUseWarp);
+ base::CommandLine::ForCurrentProcess()->HasSwitch(switches::kUseWarp);
}
void GpuDataManagerImplPrivate::AddObserver(GpuDataManagerObserver* observer) {
@@ -846,7 +846,7 @@ bool GpuDataManagerImplPrivate::UpdateActiveGpu(
}
bool GpuDataManagerImplPrivate::CanUseGpuBrowserCompositor() const {
- if (CommandLine::ForCurrentProcess()->HasSwitch(
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kDisableGpuCompositing))
return false;
if (ShouldUseWarp())
@@ -1015,9 +1015,9 @@ void GpuDataManagerImplPrivate::EnableWarpIfNecessary() {
return;
// We should only use WARP if we are unable to use the regular GPU for
// compositing, and if we in Metro mode.
- use_warp_ =
- CommandLine::ForCurrentProcess()->HasSwitch(switches::kViewerConnect) &&
- !CanUseGpuBrowserCompositor();
+ use_warp_ = base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kViewerConnect) &&
+ !CanUseGpuBrowserCompositor();
#endif
}
« no previous file with comments | « content/browser/frame_host/render_frame_host_manager_unittest.cc ('k') | content/browser/indexed_db/indexed_db_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698