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

Side by Side Diff: chrome/browser/lifetime/application_lifetime_aura.cc

Issue 816403003: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years, 12 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/lifetime/application_lifetime.h" 5 #include "chrome/browser/lifetime/application_lifetime.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/notifications/notification_ui_manager.h" 10 #include "chrome/browser/notifications/notification_ui_manager.h"
(...skipping 14 matching lines...) Expand all
25 if (ash::Shell::HasInstance()) { 25 if (ash::Shell::HasInstance()) {
26 // Releasing the capture will close any menus that might be open: 26 // Releasing the capture will close any menus that might be open:
27 // http://crbug.com/134472 27 // http://crbug.com/134472
28 aura::client::GetCaptureClient(ash::Shell::GetPrimaryRootWindow())-> 28 aura::client::GetCaptureClient(ash::Shell::GetPrimaryRootWindow())->
29 SetCapture(NULL); 29 SetCapture(NULL);
30 } 30 }
31 31
32 views::Widget::CloseAllSecondaryWidgets(); 32 views::Widget::CloseAllSecondaryWidgets();
33 33
34 #if defined(OS_CHROMEOS) 34 #if defined(OS_CHROMEOS)
35 if (!CommandLine::ForCurrentProcess()->HasSwitch( 35 if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
36 switches::kDisableZeroBrowsersOpenForTests)) { 36 switches::kDisableZeroBrowsersOpenForTests)) {
37 // App is exiting, call DecrementKeepAliveCount() on behalf of Aura Shell. 37 // App is exiting, call DecrementKeepAliveCount() on behalf of Aura Shell.
38 DecrementKeepAliveCount(); 38 DecrementKeepAliveCount();
39 // Make sure we have notified the session manager that we are exiting. 39 // Make sure we have notified the session manager that we are exiting.
40 // This might be called from FastShutdown() or CloseAllBrowsers(), but not 40 // This might be called from FastShutdown() or CloseAllBrowsers(), but not
41 // if something prevents a browser from closing before SetTryingToQuit() 41 // if something prevents a browser from closing before SetTryingToQuit()
42 // gets called (e.g. browser->TabsNeedBeforeUnloadFired() is true). 42 // gets called (e.g. browser->TabsNeedBeforeUnloadFired() is true).
43 // NotifyAndTerminate does nothing if called more than once. 43 // NotifyAndTerminate does nothing if called more than once.
44 NotifyAndTerminate(true); 44 NotifyAndTerminate(true);
45 } 45 }
46 #endif // OS_CHROMEOS 46 #endif // OS_CHROMEOS
47 } 47 }
48 48
49 } // namespace chrome 49 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/lifetime/application_lifetime.cc ('k') | chrome/browser/lifetime/browser_close_manager_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698