| Index: chrome/browser/app_controller_mac.mm
|
| diff --git a/chrome/browser/app_controller_mac.mm b/chrome/browser/app_controller_mac.mm
|
| index 866f7c009875b50a5bcb09b28ded63f4c8085fff..01feef4dbf749ac126f1cc56fec71712c3104fd7 100644
|
| --- a/chrome/browser/app_controller_mac.mm
|
| +++ b/chrome/browser/app_controller_mac.mm
|
| @@ -897,9 +897,7 @@
|
| // 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.
|
| - // In a browser test, the application is not brought to the front, so
|
| - // |lastProfile_| might be null.
|
| - if (!lastProfile_ || profilePath == lastProfile_->GetPath())
|
| + if (lastProfile_ && profilePath == lastProfile_->GetPath())
|
| lastProfile_ = g_browser_process->profile_manager()->GetLastUsedProfile();
|
|
|
| auto it = profileBookmarkMenuBridgeMap_.find(profilePath);
|
|
|