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

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

Issue 10911351: Switch PrintViewManager, PrintPreviewMessageHandler to use WebContentsUserData. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, fix typo Created 8 years, 3 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 93e0c7830ba49a44dee57b606e9f9b523453f502..4382c613b69bc074b7bc6ff9b9362d14a4c38323 100644
--- a/chrome/browser/ui/tab_contents/tab_contents.cc
+++ b/chrome/browser/ui/tab_contents/tab_contents.cc
@@ -182,8 +182,8 @@ TabContents::TabContents(WebContents* contents)
new extensions::WebNavigationTabObserver(contents));
#if defined(ENABLE_PRINTING)
- print_view_manager_.reset(new printing::PrintViewManager(this));
- print_preview_.reset(new printing::PrintPreviewMessageHandler(contents));
+ printing::PrintPreviewMessageHandler::CreateForWebContents(contents);
+ printing::PrintViewManager::CreateForWebContents(contents);
#endif
// Start the in-browser thumbnailing if the feature is enabled.
« no previous file with comments | « chrome/browser/ui/tab_contents/tab_contents.h ('k') | chrome/browser/ui/webui/print_preview/print_preview_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698