summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-10 21:08:11 +0000
committermirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-10 21:08:11 +0000
commitcef5e45c554dfa304e5ec3b35998b0158fc709d7 (patch)
tree4f549ee46ef85e536d873777fc8668309a735840
parent61e0b811dcf409390a892dae0d40fd6932a528c9 (diff)
downloadchromium_src-cef5e45c554dfa304e5ec3b35998b0158fc709d7.zip
chromium_src-cef5e45c554dfa304e5ec3b35998b0158fc709d7.tar.gz
chromium_src-cef5e45c554dfa304e5ec3b35998b0158fc709d7.tar.bz2
Make sure that we get the last active browser for the profile that is being restored.
BUG=none TEST=current tests pass Review URL: http://codereview.chromium.org/6993012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84853 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/sessions/session_restore.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/sessions/session_restore.cc b/chrome/browser/sessions/session_restore.cc
index 8f70163..dea7abc 100644
--- a/chrome/browser/sessions/session_restore.cc
+++ b/chrome/browser/sessions/session_restore.cc
@@ -573,7 +573,7 @@ class SessionRestoreImpl : public NotificationObserver {
StartTabCreation();
Browser* current_browser =
- browser_ ? browser_ : BrowserList::GetLastActive();
+ browser_ ? browser_ : BrowserList::GetLastActiveWithProfile(profile_);
// After the for loop this contains the last TABBED_BROWSER. Is null if no
// tabbed browsers exist.
Browser* last_browser = NULL;