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

Unified Diff: chrome/test/base/test_tab_strip_model_observer.cc

Issue 8564044: Revert 110056 - Print Preview: Make print preview tab modal. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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 | « chrome/test/base/test_tab_strip_model_observer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/test_tab_strip_model_observer.cc
===================================================================
--- chrome/test/base/test_tab_strip_model_observer.cc (revision 110058)
+++ chrome/test/base/test_tab_strip_model_observer.cc (working copy)
@@ -4,8 +4,6 @@
#include "chrome/test/base/test_tab_strip_model_observer.h"
-#include "base/bind.h"
-#include "chrome/browser/printing/print_preview_tab_controller.h"
#include "chrome/browser/tabs/tab_strip_model.h"
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
#include "content/public/browser/notification_source.h"
@@ -23,26 +21,8 @@
tab_strip_model_->RemoveObserver(this);
}
-void TestTabStripModelObserver::TabBlockedStateChanged(
- TabContentsWrapper* contents, int index) {
- // Need to do this later - the print preview tab has not been created yet.
- MessageLoop::current()->PostTask(
- FROM_HERE,
- base::Bind(&TestTabStripModelObserver::ObservePrintPreviewTabContents,
- base::Unretained(this),
- contents));
+void TestTabStripModelObserver::TabInsertedAt(
+ TabContentsWrapper* contents, int index, bool foreground) {
+ RegisterAsObserver(
+ content::Source<NavigationController>(&contents->controller()));
}
-
-void TestTabStripModelObserver::ObservePrintPreviewTabContents(
- TabContentsWrapper* contents) {
- printing::PrintPreviewTabController* tab_controller =
- printing::PrintPreviewTabController::GetInstance();
- if (tab_controller) {
- TabContentsWrapper* preview_tab =
- tab_controller->GetPrintPreviewForTab(contents);
- if (preview_tab) {
- RegisterAsObserver(
- content::Source<NavigationController>(&preview_tab->controller()));
- }
- }
-}
« no previous file with comments | « chrome/test/base/test_tab_strip_model_observer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698