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

Unified Diff: chrome/browser/app_controller_mac.mm

Issue 12315094: Remove kDefaultHostDesktopType from browser_finder.cc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix StartupBrowserCreatorTest.ProfilesWithoutPagesNotLaunched 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/automation/testing_automation_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « no previous file | chrome/browser/automation/testing_automation_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698