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

Unified Diff: chrome/browser/app_controller_mac.mm

Issue 953453002: Wait until a new profile has been created before deleting the active profile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: test Created 5 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/profiles/profile_manager.h » ('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 01feef4dbf749ac126f1cc56fec71712c3104fd7..437637f979528887392c5194ebd7ffbe266570d2 100644
--- a/chrome/browser/app_controller_mac.mm
+++ b/chrome/browser/app_controller_mac.mm
@@ -897,7 +897,7 @@ class AppControllerProfileObserver : public ProfileInfoCacheObserver {
// already loaded a new one, so the pointer needs to be updated;
// otherwise we will try to start up a browser window with a pointer
// to the old profile.
- if (lastProfile_ && profilePath == lastProfile_->GetPath())
+ if (!lastProfile_ || profilePath == lastProfile_->GetPath())
noms (inactive) 2015/02/24 19:37:37 i'm confused. is this a real change or a test? :(
Bernhard Bauer 2015/02/24 22:28:24 Allow me to explain: |lastProfile_| starts out as
Mike Lerman 2015/02/25 18:32:10 Makes sense - can you modify the above comment blo
Bernhard Bauer 2015/02/25 18:42:34 Done.
lastProfile_ = g_browser_process->profile_manager()->GetLastUsedProfile();
auto it = profileBookmarkMenuBridgeMap_.find(profilePath);
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698