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

Side by Side Diff: chrome/browser/app_mode/app_mode_utils.cc

Issue 12077055: Made launcher hidden when kicking off chrome in app mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/app_mode/app_mode_utils.h"
6
7 #include "base/command_line.h"
8 #include "chrome/common/chrome_switches.h"
9
10 namespace chrome {
11
12 bool IsRunningInAppMode() {
13 CommandLine* command_line = CommandLine::ForCurrentProcess();
14 return command_line->HasSwitch(switches::kKioskMode) ||
15 (command_line->HasSwitch(switches::kForceAppMode) &&
16 command_line->HasSwitch(switches::kAppId));
17 }
18
19 } // namespace switches
OLDNEW
« no previous file with comments | « chrome/browser/app_mode/app_mode_utils.h ('k') | chrome/browser/lifetime/application_lifetime_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698