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

Unified Diff: chrome/browser/ui/webui/ntp/app_launcher_handler.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/ui/webui/ntp/app_launcher_handler.cc
diff --git a/chrome/browser/ui/webui/ntp/app_launcher_handler.cc b/chrome/browser/ui/webui/ntp/app_launcher_handler.cc
index 2a054546bbda93ce0a62546116650ff77fe3bdae..e56bcef84335e0768b04962ad2d463f0cd44793b 100644
--- a/chrome/browser/ui/webui/ntp/app_launcher_handler.cc
+++ b/chrome/browser/ui/webui/ntp/app_launcher_handler.cc
@@ -28,7 +28,7 @@
#include "chrome/browser/prefs/scoped_user_pref_update.h"
#include "chrome/browser/profiles/profile.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/webui/extensions/extension_icon_source.h"
#include "chrome/browser/ui/webui/ntp/new_tab_ui.h"
@@ -558,7 +558,7 @@ void AppLauncherHandler::HandleLaunchApp(const ListValue* args) {
// To give a more "launchy" experience when using the NTP launcher, we close
// it automatically.
- Browser* browser = BrowserList::GetLastActiveWithProfile(profile);
+ Browser* browser = browser::FindLastActiveWithProfile(profile);
WebContents* old_contents = NULL;
if (browser)
old_contents = browser->GetSelectedWebContents();
@@ -630,7 +630,7 @@ void AppLauncherHandler::HandleCreateAppShortcut(const ListValue* args) {
if (!extension)
return;
- Browser* browser = BrowserList::GetLastActiveWithProfile(
+ Browser* browser = browser::FindLastActiveWithProfile(
extension_service_->profile());
if (!browser)
return;

Powered by Google App Engine
This is Rietveld 408576698