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

Unified Diff: chrome/browser/ui/webui/print_preview_ui.cc

Issue 8949061: Move a bunch of methods from TabContents into the WebContents interface. This change either moves... (Closed) Base URL: svn://chrome-svn/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
Index: chrome/browser/ui/webui/print_preview_ui.cc
===================================================================
--- chrome/browser/ui/webui/print_preview_ui.cc (revision 115435)
+++ chrome/browser/ui/webui/print_preview_ui.cc (working copy)
@@ -135,10 +135,10 @@
void PrintPreviewUI::SetSourceIsModifiable(
TabContentsWrapper* print_preview_tab,
bool source_is_modifiable) {
- if (!print_preview_tab || !print_preview_tab->tab_contents()->web_ui())
+ if (!print_preview_tab || !print_preview_tab->tab_contents()->GetWebUI())
return;
- PrintPreviewUI* print_preview_ui =
- static_cast<PrintPreviewUI*>(print_preview_tab->tab_contents()->web_ui());
+ PrintPreviewUI* print_preview_ui = static_cast<PrintPreviewUI*>(
+ print_preview_tab->tab_contents()->GetWebUI());
print_preview_ui->source_is_modifiable_ = source_is_modifiable;
}
« no previous file with comments | « chrome/browser/ui/webui/print_preview_handler_unittest.cc ('k') | chrome/browser/ui/webui/print_preview_ui_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698