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

Unified Diff: chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.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/options2/chromeos/internet_options_handler2.cc
diff --git a/chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.cc b/chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.cc
index 5ec3b0dc6595e2d39329965470e228a49f09adfb..604c2f6c7e4afb2cfb2947fa43ad5721863f718c 100644
--- a/chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.cc
+++ b/chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.cc
@@ -40,7 +40,7 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_manager.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/web_ui_util.h"
#include "chrome/common/chrome_notification_types.h"
@@ -541,7 +541,7 @@ void InternetOptionsHandler::DisableCellularCallback(const ListValue* args) {
void InternetOptionsHandler::ShowMorePlanInfoCallback(const ListValue* args) {
if (!web_ui())
return;
- Browser* browser = BrowserList::FindBrowserWithFeature(
+ Browser* browser = browser::FindBrowserWithFeature(
Profile::FromWebUI(web_ui()), Browser::FEATURE_TABSTRIP);
if (!browser)
return;
@@ -1064,12 +1064,12 @@ gfx::NativeWindow InternetOptionsHandler::GetNativeWindow() const {
// TODO(beng): This is an improper direct dependency on Browser. Route this
// through some sort of delegate.
Browser* browser =
- BrowserList::FindBrowserWithProfile(Profile::FromWebUI(web_ui()));
+ browser::FindBrowserWithProfile(Profile::FromWebUI(web_ui()));
return browser->window()->GetNativeHandle();
}
Browser* InternetOptionsHandler::GetAppropriateBrowser() {
- return Browser::GetOrCreateTabbedBrowser(
+ return browser::FindOrCreateTabbedBrowser(
ProfileManager::GetDefaultProfileOrOffTheRecord());
}

Powered by Google App Engine
This is Rietveld 408576698