summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/browser_finder.cc
diff options
context:
space:
mode:
authorjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-27 16:24:46 +0000
committerjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-27 16:24:46 +0000
commitdb9d45a5f52c126f7f414d7531ccd40cd6e2d313 (patch)
tree010a433af09060fde28c6107e472977b6ebe74fd /chrome/browser/ui/browser_finder.cc
parent17de2f9b82e9dd71fc88c9b81a52bc204c6efb2f (diff)
downloadchromium_src-db9d45a5f52c126f7f414d7531ccd40cd6e2d313.zip
chromium_src-db9d45a5f52c126f7f414d7531ccd40cd6e2d313.tar.gz
chromium_src-db9d45a5f52c126f7f414d7531ccd40cd6e2d313.tar.bz2
Revert 169654 - FindLastActiveWithProfile now requires a HostDesktopType.
BUG=129187 TEST=none Review URL: https://chromiumcodereview.appspot.com/11365128 Speculative revert to fix Win Aura crash in unit test ExtensionServiceTest.LoadExtensionsWithPlugins. TBR=grt@chromium.org Review URL: https://codereview.chromium.org/11413189 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@169664 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/browser_finder.cc')
-rw-r--r--chrome/browser/ui/browser_finder.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/ui/browser_finder.cc b/chrome/browser/ui/browser_finder.cc
index a881f2c..081d019 100644
--- a/chrome/browser/ui/browser_finder.cc
+++ b/chrome/browser/ui/browser_finder.cc
@@ -198,12 +198,12 @@ Browser* FindBrowserWithWebContents(const WebContents* web_contents) {
namespace chrome {
-Browser* FindLastActiveWithProfile(Profile* profile, HostDesktopType type) {
- BrowserListImpl* list = BrowserListImpl::GetInstance(type);
+Browser* FindLastActiveWithProfile(Profile* profile) {
// We are only interested in last active browsers, so we don't fall back to
// all browsers like FindBrowserWith* do.
- return FindBrowserMatching(list->begin_last_active(), list->end_last_active(),
- profile, Browser::FEATURE_NONE, kMatchAny);
+ return FindBrowserMatching(
+ BrowserList::begin_last_active(), BrowserList::end_last_active(), profile,
+ Browser::FEATURE_NONE, kMatchAny);
}
Browser* FindLastActiveWithHostDesktopType(HostDesktopType type) {