summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/app_controller_mac.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/app_controller_mac.mm b/chrome/browser/app_controller_mac.mm
index 4eb186f..b1e6924 100644
--- a/chrome/browser/app_controller_mac.mm
+++ b/chrome/browser/app_controller_mac.mm
@@ -1017,9 +1017,9 @@ void RecordLastRunAppBundlePath() {
if (lastProfile_)
return lastProfile_;
- // Fallback to the default if this is the first Browser.
+ // On first launch, no profile will be stored, so use last from Local State.
if (g_browser_process->profile_manager())
- return g_browser_process->profile_manager()->GetDefaultProfile();
+ return g_browser_process->profile_manager()->GetLastUsedProfile();
return NULL;
}