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

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

Issue 6334010: Print Preview: Store preview data in the print preview handler.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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/tab_contents/tab_contents.cc
===================================================================
--- chrome/browser/tab_contents/tab_contents.cc (revision 72691)
+++ chrome/browser/tab_contents/tab_contents.cc (working copy)
@@ -52,6 +52,7 @@
#include "chrome/browser/plugin_installer_infobar_delegate.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/prerender/prerender_manager.h"
+#include "chrome/browser/printing/print_preview_message_handler.h"
#include "chrome/browser/printing/print_preview_tab_controller.h"
#include "chrome/browser/printing/print_view_manager.h"
#include "chrome/browser/profiles/profile.h"
@@ -363,6 +364,8 @@
registrar_(),
ALLOW_THIS_IN_INITIALIZER_LIST(printing_(
new printing::PrintViewManager(*this))),
+ ALLOW_THIS_IN_INITIALIZER_LIST(print_preview_(
+ new printing::PrintPreviewMessageHandler(this))),
save_package_(),
autocomplete_history_manager_(),
autofill_manager_(),
@@ -474,6 +477,7 @@
AddNavigationObserver(autocomplete_history_manager_.get());
AddNavigationObserver(&fav_icon_helper_);
AddNavigationObserver(printing_.get());
+ AddNavigationObserver(print_preview_.get());
}
TabContents::~TabContents() {

Powered by Google App Engine
This is Rietveld 408576698