| Index: chrome/browser/app_controller_mac.mm
|
| diff --git a/chrome/browser/app_controller_mac.mm b/chrome/browser/app_controller_mac.mm
|
| index 4fb994e9a59b9abebfe177e2b304ac1516fc1456..93e807c89694effc4b9e17ca435c8724a5b2fe88 100644
|
| --- a/chrome/browser/app_controller_mac.mm
|
| +++ b/chrome/browser/app_controller_mac.mm
|
| @@ -365,8 +365,10 @@ void RecordLastRunAppBundlePath() {
|
| }
|
|
|
| - (void)didEndMainMessageLoop {
|
| - DCHECK_EQ(0u, chrome::GetBrowserCount([self lastProfile]));
|
| - if (!chrome::GetBrowserCount([self lastProfile])) {
|
| + DCHECK_EQ(0u, chrome::GetBrowserCount([self lastProfile],
|
| + chrome::HOST_DESKTOP_TYPE_NATIVE));
|
| + if (!chrome::GetBrowserCount([self lastProfile],
|
| + chrome::HOST_DESKTOP_TYPE_NATIVE)) {
|
| // As we're shutting down, we need to nuke the TabRestoreService, which
|
| // will start the shutdown of the NavigationControllers and allow for
|
| // proper shutdown. If we don't do this, Chrome won't shut down cleanly,
|
|
|