Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 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/browser_process_platform_part_base.h" | 5 #include "chrome/browser/browser_process_platform_part_base.h" |
| 6 #include "chrome/browser/lifetime/application_lifetime.h" | |
| 6 | 7 |
| 7 BrowserProcessPlatformPartBase::BrowserProcessPlatformPartBase() { | 8 BrowserProcessPlatformPartBase::BrowserProcessPlatformPartBase() { |
| 8 } | 9 } |
| 9 | 10 |
| 10 BrowserProcessPlatformPartBase::~BrowserProcessPlatformPartBase() { | 11 BrowserProcessPlatformPartBase::~BrowserProcessPlatformPartBase() { |
| 11 } | 12 } |
| 12 | 13 |
| 13 void BrowserProcessPlatformPartBase::PlatformSpecificCommandLineProcessing( | 14 void BrowserProcessPlatformPartBase::PlatformSpecificCommandLineProcessing( |
| 14 const CommandLine& /* command_line */) { | 15 const CommandLine& /* command_line */) { |
| 15 } | 16 } |
| 16 | 17 |
| 17 void BrowserProcessPlatformPartBase::StartTearDown() { | 18 void BrowserProcessPlatformPartBase::StartTearDown() { |
| 18 } | 19 } |
| 20 | |
| 21 void BrowserProcessPlatformPartBase::AttemptExit() { | |
| 22 // On most platforms, closing all windows causes the application to exit. | |
| 23 chrome::CloseAllBrowsers(); | |
|
sky
2013/05/18 15:18:58
I think its a little mysterious that you have this
gab
2013/05/21 03:50:33
While playing some more with the application lifet
gab
2013/05/21 15:39:30
Actually, I still feel the current approach (1) is
| |
| 24 } | |
| OLD | NEW |