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

Unified Diff: chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc

Issue 9224002: Make WebUI objects not derive from WebUI. WebUI objects own the controller. This is the ownership... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync to head to clear linux_chromeos browsertest failures Created 8 years, 11 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/ui/webui/print_preview/print_preview_handler_unittest.cc
===================================================================
--- chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc (revision 117871)
+++ chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc (working copy)
@@ -67,8 +67,8 @@
preview_tab_ = controller->GetOrCreatePreviewTab(initiator_tab);
ASSERT_TRUE(preview_tab_);
- preview_ui_ =
- static_cast<PrintPreviewUI*>(preview_tab_->web_contents()->GetWebUI());
+ preview_ui_ = static_cast<PrintPreviewUI*>(
+ preview_tab_->web_contents()->GetWebUI()->GetController());
ASSERT_TRUE(preview_ui_);
}

Powered by Google App Engine
This is Rietveld 408576698