Commit 581d68b9 authored by Yulun Wu's avatar Yulun Wu Committed by Commit Bot

Move ash_switches helper functions in alphabetical order.

Change-Id: I5b56232b66fff49739500a171a28615be96f0b78
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2079458
Commit-Queue: Yulun Wu <yulunwu@chromium.org>
Auto-Submit: Yulun Wu <yulunwu@chromium.org>
Reviewed-by: default avatarScott Violet <sky@chromium.org>
Cr-Commit-Position: refs/heads/master@{#746055}
parent 9b98631f
......@@ -115,7 +115,7 @@ const char kHasInternalStylus[] = "has-internal-stylus";
// option "Show taps".
const char kShowTaps[] = "show-taps";
// If true, the webui lock screen wil be shown. This is deprecated and will be
// If true, the webui lock screen will be shown. This is deprecated and will be
// removed in the future.
const char kShowWebUiLock[] = "show-webui-lock";
......@@ -133,13 +133,14 @@ const char kTouchscreenUsableWhileScreenOff[] =
// Hides all Message Center notification popups (toasts). Used for testing.
const char kSuppressMessageCenterPopups[] = "suppress-message-center-popups";
bool IsUsingViewsLock() {
return !base::CommandLine::ForCurrentProcess()->HasSwitch(kShowWebUiLock);
}
bool IsUsingShelfAutoDim() {
return base::CommandLine::ForCurrentProcess()->HasSwitch(kEnableDimShelf);
}
// Returns true if the device will NOT show the webui lock screen.
bool IsUsingViewsLock() {
return !base::CommandLine::ForCurrentProcess()->HasSwitch(kShowWebUiLock);
}
} // namespace switches
} // namespace ash
......@@ -58,8 +58,8 @@ ASH_PUBLIC_EXPORT extern const char kShowWebUiLogin[];
ASH_PUBLIC_EXPORT extern const char kSuppressMessageCenterPopups[];
ASH_PUBLIC_EXPORT extern const char kTouchscreenUsableWhileScreenOff[];
ASH_PUBLIC_EXPORT bool IsUsingViewsLock();
ASH_PUBLIC_EXPORT bool IsUsingShelfAutoDim();
ASH_PUBLIC_EXPORT bool IsUsingViewsLock();
} // namespace switches
} // namespace ash
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment