From c7a32aae2224487528bdafe899af58b1c2b483a1 Mon Sep 17 00:00:00 2001 From: "ananta@chromium.org" Date: Thu, 24 Jan 2013 23:52:59 +0000 Subject: Ensure that the active browser gets pushed into the correct browser list. In Chrome AURA there could be two browser lists active at any given time. The desktop and the ASH list. This ensures that the download shelf shows up when the save item is created in Chrome ASH on Windows 8. BUG=170483 R=sky Review URL: https://codereview.chromium.org/12033083 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178697 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/ui/browser_list.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/browser/ui/browser_list.cc b/chrome/browser/ui/browser_list.cc index e0976d1..dca3d24 100644 --- a/chrome/browser/ui/browser_list.cc +++ b/chrome/browser/ui/browser_list.cc @@ -67,7 +67,8 @@ size_t BrowserList::size() { // static void BrowserList::SetLastActive(Browser* browser) { - GetNativeList()->SetLastActive(browser); + chrome::BrowserListImpl::GetInstance(browser->host_desktop_type())-> + SetLastActive(browser); } // static -- cgit v1.1