Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(901)

Unified Diff: chrome/browser/autofill/autofill_manager.cc

Issue 10391158: Moves methods for finding browsers to browser_finder. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Include fixs Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/autofill/autofill_manager.cc
diff --git a/chrome/browser/autofill/autofill_manager.cc b/chrome/browser/autofill/autofill_manager.cc
index 627b0cbf74ec01d5d34bd4f6c4fe820f5bca8856..74677e83474249ae89b1cf6e4f9c078b3f9a6753 100644
--- a/chrome/browser/autofill/autofill_manager.cc
+++ b/chrome/browser/autofill/autofill_manager.cc
@@ -40,7 +40,7 @@
#include "chrome/browser/sync/profile_sync_service_factory.h"
#include "chrome/browser/sync/profile_sync_service.h"
#include "chrome/browser/ui/browser.h"
-#include "chrome/browser/ui/browser_list.h"
+#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
#include "chrome/common/autofill_messages.h"
@@ -635,7 +635,7 @@ void AutofillManager::OnShowAutofillDialog() {
#if defined(OS_ANDROID)
NOTIMPLEMENTED();
#else
- Browser* browser = BrowserList::GetLastActiveWithProfile(
+ Browser* browser = browser::FindLastActiveWithProfile(
Profile::FromBrowserContext(web_contents()->GetBrowserContext()));
if (browser)
browser->ShowOptionsTab(chrome::kAutofillSubPage);
@@ -691,7 +691,7 @@ void AutofillManager::OnShowPasswordGenerationPopup(const gfx::Rect& bounds) {
#if defined(OS_ANDROID)
NOTIMPLEMENTED();
#else
- Browser* browser = BrowserList::GetLastActiveWithProfile(
+ Browser* browser = browser::FindLastActiveWithProfile(
Profile::FromBrowserContext(web_contents()->GetBrowserContext()));
browser->window()->ShowPasswordGenerationBubble(bounds);
#endif // #if defined(OS_ANDROID)

Powered by Google App Engine
This is Rietveld 408576698