summaryrefslogtreecommitdiffstats
path: root/chrome/browser/printing/print_preview_tab_controller.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/printing/print_preview_tab_controller.cc')
-rw-r--r--chrome/browser/printing/print_preview_tab_controller.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/chrome/browser/printing/print_preview_tab_controller.cc b/chrome/browser/printing/print_preview_tab_controller.cc
index 6888f5b..2cc8514 100644
--- a/chrome/browser/printing/print_preview_tab_controller.cc
+++ b/chrome/browser/printing/print_preview_tab_controller.cc
@@ -35,9 +35,6 @@ TabContents* PrintPreviewTabController::GetOrCreatePreviewTab(
TabContents* initiator_tab, int browser_window_id ) {
DCHECK(initiator_tab);
- if (IsPrintPreviewTab(initiator_tab))
- return initiator_tab;
-
// Get the print preview tab for |initiator_tab|.
TabContents* preview_tab = GetPrintPreviewForTab(initiator_tab);
if (preview_tab) {
@@ -48,6 +45,7 @@ TabContents* PrintPreviewTabController::GetOrCreatePreviewTab(
return CreatePrintPreviewTab(initiator_tab, browser_window_id);
}
+// static
bool PrintPreviewTabController::IsPrintPreviewTab(TabContents* tab) {
const GURL& url = tab->GetURL();
return (url.SchemeIs(chrome::kChromeUIScheme) &&
@@ -192,4 +190,4 @@ void PrintPreviewTabController::Observe(NotificationType type,
RemoveObservers(initiator_tab);
}
-} // namespace printing
+} // namespace printing