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

Unified Diff: chrome/browser/app_mode/app_mode_utils.cc

Issue 2498613003: Add ARC++ kiosk menu items and ability to start kiosk session. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 1 month 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: chrome/browser/app_mode/app_mode_utils.cc
diff --git a/chrome/browser/app_mode/app_mode_utils.cc b/chrome/browser/app_mode/app_mode_utils.cc
index 758bd844ab33d992ebf0e9a27df8e352a68ba219..0713bc9ec3d7592cf47139997dd1ccb2d562cd1a 100644
--- a/chrome/browser/app_mode/app_mode_utils.cc
+++ b/chrome/browser/app_mode/app_mode_utils.cc
@@ -54,4 +54,9 @@ bool IsRunningInForcedAppMode() {
command_line->HasSwitch(switches::kAppId);
}
+bool IsRunningInAndroidAppMode() {
hidehiko 2016/11/14 05:29:24 Considering the name consistency, IsRunningInForce
Sergey Poromov 2016/11/14 17:23:22 Done.
+ base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
peletskyi 2016/11/12 16:52:17 Can you try here to check what type of user is log
+ return command_line->HasSwitch(switches::kForceAndroidAppMode);
hidehiko 2016/11/14 05:29:24 "command_line->HasSwitch(switches::kAppId)" is in
Sergey Poromov 2016/11/14 17:23:22 For android app we don't put the switch.
+}
+
} // namespace chrome

Powered by Google App Engine
This is Rietveld 408576698