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

Unified Diff: ash/wm/maximize_mode/maximize_mode_controller.cc

Issue 684783004: Prefix CommandLine usage with base namespace (Part 4: ash/) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/wm/lock_layout_manager_unittest.cc ('k') | ash/wm/maximize_mode/maximize_mode_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/maximize_mode/maximize_mode_controller.cc
diff --git a/ash/wm/maximize_mode/maximize_mode_controller.cc b/ash/wm/maximize_mode/maximize_mode_controller.cc
index 3f784d45e79f1806161a17a6711bdd900a17e4e4..1ca7e6a4816108f7786c5b41ec6481e2feae7a42 100644
--- a/ash/wm/maximize_mode/maximize_mode_controller.cc
+++ b/ash/wm/maximize_mode/maximize_mode_controller.cc
@@ -167,7 +167,7 @@ bool MaximizeModeController::CanEnterMaximizeMode() {
// The --enable-touch-view-testing switch can also mean that we may enter
// maximize mode.
return have_seen_accelerometer_data_ ||
- CommandLine::ForCurrentProcess()->HasSwitch(
+ base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kAshEnableTouchViewTesting);
}
@@ -309,7 +309,7 @@ void MaximizeModeController::HandleHingeRotation(const gfx::Vector3dF& base,
if (lid_open_past_180_ && is_angle_stable &&
lid_angle <= kExitMaximizeModeAngle) {
lid_open_past_180_ = false;
- if (!CommandLine::ForCurrentProcess()->
+ if (!base::CommandLine::ForCurrentProcess()->
HasSwitch(switches::kAshEnableTouchViewTesting)) {
LeaveMaximizeMode();
}
@@ -318,7 +318,7 @@ void MaximizeModeController::HandleHingeRotation(const gfx::Vector3dF& base,
lid_angle >= kEnterMaximizeModeAngle &&
(is_angle_stable || !WasLidOpenedRecently())) {
lid_open_past_180_ = true;
- if (!CommandLine::ForCurrentProcess()->
+ if (!base::CommandLine::ForCurrentProcess()->
HasSwitch(switches::kAshEnableTouchViewTesting)) {
EnterMaximizeMode();
}
« no previous file with comments | « ash/wm/lock_layout_manager_unittest.cc ('k') | ash/wm/maximize_mode/maximize_mode_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698