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

Unified Diff: chrome/browser/app_controller_mac.mm

Issue 1661713002: Remove the rest of HostDesktopType from c/b/ui/browser_finder.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-11
Patch Set: linux adl Created 4 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
« no previous file with comments | « no previous file | chrome/browser/captive_portal/captive_portal_browsertest.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 ba43ca5c71e3be52409bec8b49cbe7cad0263801..f61d027aa3832a43e8a550551a2aec05a818698d 100644
--- a/chrome/browser/app_controller_mac.mm
+++ b/chrome/browser/app_controller_mac.mm
@@ -535,10 +535,8 @@ class AppControllerProfileObserver : public ProfileInfoCacheObserver {
}
- (void)didEndMainMessageLoop {
- DCHECK_EQ(0u, chrome::GetBrowserCount([self lastProfile],
- chrome::HOST_DESKTOP_TYPE_NATIVE));
- if (!chrome::GetBrowserCount([self lastProfile],
- chrome::HOST_DESKTOP_TYPE_NATIVE)) {
+ DCHECK_EQ(0u, chrome::GetBrowserCount([self lastProfile]));
+ if (!chrome::GetBrowserCount([self lastProfile])) {
// 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,
@@ -851,8 +849,7 @@ class AppControllerProfileObserver : public ProfileInfoCacheObserver {
if ([self userWillWaitForInProgressDownloads:downloadCount]) {
// Create a new browser window (if necessary) and navigate to the
// downloads page if the user chooses to wait.
- Browser* browser = chrome::FindBrowserWithProfile(
- profiles[i], chrome::HOST_DESKTOP_TYPE_NATIVE);
+ Browser* browser = chrome::FindBrowserWithProfile(profiles[i]);
if (!browser) {
browser = new Browser(Browser::CreateParams(
profiles[i], chrome::HOST_DESKTOP_TYPE_NATIVE));
« no previous file with comments | « no previous file | chrome/browser/captive_portal/captive_portal_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698