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 |