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

Unified Diff: chrome/browser/lifetime/application_lifetime_aura.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: Created 7 years, 11 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
Index: chrome/browser/lifetime/application_lifetime_aura.cc
diff --git a/chrome/browser/lifetime/application_lifetime_aura.cc b/chrome/browser/lifetime/application_lifetime_aura.cc
index 5cfca40cd10c761cb85628cf73d68595eaead3ad..36474da34f36b013841692ac3fdf4ae9d8706e92 100644
--- a/chrome/browser/lifetime/application_lifetime_aura.cc
+++ b/chrome/browser/lifetime/application_lifetime_aura.cc
@@ -5,9 +5,11 @@
#include "chrome/browser/lifetime/application_lifetime.h"
#include "base/command_line.h"
-#include "chrome/common/chrome_switches.h"
+#include "chrome/browser/app_mode/app_mode_utils.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/notifications/notification_ui_manager.h"
+#include "chrome/common/chrome_switches.h"
+#include "chrome/common/switch_utils.h"
#include "ui/views/widget/widget.h"
#if defined(USE_ASH)
@@ -38,7 +40,8 @@ void HandleAppExitingForPlatform() {
#if defined(OS_CHROMEOS)
if (!CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kDisableZeroBrowsersOpenForTests)) {
+ switches::kDisableZeroBrowsersOpenForTests) &&
+ !app_mode_utils::IsRunningInAppMode()) {
// App is exiting, call EndKeepAlive() on behalf of Aura Shell.
EndKeepAlive();
// Make sure we have notified the session manager that we are exiting.

Powered by Google App Engine
This is Rietveld 408576698