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

Unified Diff: chrome/browser/printing/print_preview_tab_controller.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/printing/print_preview_tab_controller.cc
diff --git a/chrome/browser/printing/print_preview_tab_controller.cc b/chrome/browser/printing/print_preview_tab_controller.cc
index c07781c3020c2b444d31be668cdc34daf9d21dfb..30d0c1ebb6c843a80fc1f36dd01f8169a437c02a 100644
--- a/chrome/browser/printing/print_preview_tab_controller.cc
+++ b/chrome/browser/printing/print_preview_tab_controller.cc
@@ -16,7 +16,7 @@
#include "chrome/browser/printing/print_view_manager.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_navigator.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
@@ -183,7 +183,7 @@ void PrintPreviewWebContentDelegate::HandleKeyboardEvent(
// Disabled on Mac due to http://crbug.com/112173.
#if !defined(OS_MACOSX)
Browser* current_browser =
- BrowserList::FindBrowserWithWebContents(tab_->web_contents());
+ browser::FindBrowserWithWebContents(tab_->web_contents());
if (!current_browser)
return;
current_browser->window()->HandleKeyboardEvent(event);
@@ -410,7 +410,7 @@ TabContentsWrapper* PrintPreviewTabController::CreatePrintPreviewTab(
AutoReset<bool> auto_reset(&is_creating_print_preview_tab_, true);
WebContents* web_contents = initiator_tab->web_contents();
Browser* current_browser =
- BrowserList::FindBrowserWithWebContents(web_contents);
+ browser::FindBrowserWithWebContents(web_contents);
if (!current_browser) {
if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kChromeFrame)) {
Profile* profile =

Powered by Google App Engine
This is Rietveld 408576698