summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/process_singleton_linux.cc2
-rw-r--r--chrome/browser/process_singleton_win.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/process_singleton_linux.cc b/chrome/browser/process_singleton_linux.cc
index f4808e6..5b122ef 100644
--- a/chrome/browser/process_singleton_linux.cc
+++ b/chrome/browser/process_singleton_linux.cc
@@ -627,7 +627,7 @@ void ProcessSingleton::LinuxWatcher::HandleMessage(
PrefService* prefs = g_browser_process->local_state();
DCHECK(prefs);
- Profile* profile = ProfileManager::GetDefaultProfile();
+ Profile* profile = ProfileManager::GetLastUsedProfile();
if (!profile) {
// We should only be able to get here if the profile already exists and
diff --git a/chrome/browser/process_singleton_win.cc b/chrome/browser/process_singleton_win.cc
index 42a7659..c99e2de 100644
--- a/chrome/browser/process_singleton_win.cc
+++ b/chrome/browser/process_singleton_win.cc
@@ -307,7 +307,7 @@ LRESULT ProcessSingleton::OnCopyData(HWND hwnd, const COPYDATASTRUCT* cds) {
PrefService* prefs = g_browser_process->local_state();
DCHECK(prefs);
- Profile* profile = ProfileManager::GetDefaultProfile();
+ Profile* profile = ProfileManager::GetLastUsedProfile();
if (!profile) {
// We should only be able to get here if the profile already exists and
// has been created.