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

Unified Diff: chrome/browser/ui/tab_contents/tab_contents.cc

Issue 10540033: Add ENABLE_PRINTING and disable it on Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Arrange some ifdefs Created 8 years, 6 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/tab_contents/tab_contents.cc
diff --git a/chrome/browser/ui/tab_contents/tab_contents.cc b/chrome/browser/ui/tab_contents/tab_contents.cc
index c4bf323eb225e95b57b3939db1ba88882a85f41f..1a528ddf4c7b3a937bb1afcb35c3c07e1ff0ba2e 100644
--- a/chrome/browser/ui/tab_contents/tab_contents.cc
+++ b/chrome/browser/ui/tab_contents/tab_contents.cc
@@ -121,7 +121,6 @@ TabContents::TabContents(WebContents* contents)
zoom_controller_.reset(new ZoomController(this));
#if !defined(OS_ANDROID)
- print_view_manager_.reset(new printing::PrintViewManager(this));
sad_tab_helper_.reset(new SadTabHelper(contents));
#endif
@@ -147,6 +146,10 @@ TabContents::TabContents(WebContents* contents)
#if !defined(OS_ANDROID)
if (OmniboxSearchHint::IsEnabled(profile()))
omnibox_search_hint_.reset(new OmniboxSearchHint(this));
+#endif
+
+#if defined(ENABLE_PRINTING)
+ print_view_manager_.reset(new printing::PrintViewManager(this));
print_preview_.reset(new printing::PrintPreviewMessageHandler(contents));
#endif
« no previous file with comments | « chrome/browser/profiles/profile_dependency_manager.cc ('k') | chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698