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

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

Issue 8892011: Clean up TCW, make it solely a hub for 1:1 observer/helper objects. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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/browser_with_test_window_test.cc ('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
diff --git a/chrome/test/base/test_tab_strip_model_observer.cc b/chrome/test/base/test_tab_strip_model_observer.cc
index 7beda3ca78a015a873db3998e4f62a572c8c2052..dcb8196eb10c21297a5a856ed30728a6b6904e7e 100644
--- a/chrome/test/base/test_tab_strip_model_observer.cc
+++ b/chrome/test/base/test_tab_strip_model_observer.cc
@@ -9,6 +9,7 @@
#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/browser/tab_contents/tab_contents.h"
#include "content/public/browser/notification_source.h"
TestTabStripModelObserver::TestTabStripModelObserver(
@@ -41,8 +42,8 @@ void TestTabStripModelObserver::ObservePrintPreviewTabContents(
TabContentsWrapper* preview_tab =
tab_controller->GetPrintPreviewForTab(contents);
if (preview_tab) {
- RegisterAsObserver(
- content::Source<NavigationController>(&preview_tab->controller()));
+ RegisterAsObserver(content::Source<NavigationController>(
+ &preview_tab->tab_contents()->controller()));
}
}
}
« no previous file with comments | « chrome/test/base/browser_with_test_window_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698