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

Unified Diff: chrome/browser/printing/print_preview_tab_controller_browsertest.cc

Issue 7799019: Print Preview: Add a test for activating the initiator tab on print. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/printing/print_preview_tab_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/printing/print_preview_tab_controller_browsertest.cc
===================================================================
--- chrome/browser/printing/print_preview_tab_controller_browsertest.cc (revision 99027)
+++ chrome/browser/printing/print_preview_tab_controller_browsertest.cc (working copy)
@@ -33,8 +33,8 @@
browser()->GetSelectedTabContentsWrapper();
ASSERT_TRUE(initiator_tab);
- scoped_refptr<printing::PrintPreviewTabController>
- tab_controller(new printing::PrintPreviewTabController());
+ printing::PrintPreviewTabController* tab_controller =
+ printing::PrintPreviewTabController::GetInstance();
ASSERT_TRUE(tab_controller);
// Get the preview tab for initiator tab.
@@ -85,8 +85,8 @@
browser()->GetSelectedTabContentsWrapper();
ASSERT_TRUE(initiator_tab);
- scoped_refptr<printing::PrintPreviewTabController>
- tab_controller(new printing::PrintPreviewTabController());
+ printing::PrintPreviewTabController* tab_controller =
+ printing::PrintPreviewTabController::GetInstance();
ASSERT_TRUE(tab_controller);
// Get the preview tab for initiator tab.
@@ -136,8 +136,8 @@
browser()->GetSelectedTabContentsWrapper();
ASSERT_TRUE(initiator_tab);
- scoped_refptr<printing::PrintPreviewTabController>
- tab_controller(new printing::PrintPreviewTabController());
+ printing::PrintPreviewTabController* tab_controller =
+ printing::PrintPreviewTabController::GetInstance();
ASSERT_TRUE(tab_controller);
// Get the preview tab for initiator tab.
« no previous file with comments | « no previous file | chrome/browser/printing/print_preview_tab_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698