Index: chrome/browser/profiles/profile_manager.cc |
=================================================================== |
--- chrome/browser/profiles/profile_manager.cc (revision 148288) |
+++ chrome/browser/profiles/profile_manager.cc (working copy) |
@@ -561,13 +561,8 @@ |
DCHECK(profile); |
if (!profile->IsOffTheRecord() && ++browser_counts_[profile] == 1) { |
active_profiles_.push_back(profile); |
- save_active_profiles = true; |
+ save_active_profiles = !closing_all_browsers_; |
} |
- // If browsers are opening, we can't be closing all the browsers. This |
- // can happen if the application was exited, but background mode or |
- // packaged apps prevented the process from shutting down, and then |
- // a new browser window was opened. |
- closing_all_browsers_ = false; |
break; |
} |
case chrome::NOTIFICATION_BROWSER_CLOSED: { |