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

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
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/tab_contents.cc
===================================================================
--- chrome/browser/tab_contents/tab_contents.cc (revision 73656)
+++ chrome/browser/tab_contents/tab_contents.cc (working copy)
@@ -54,6 +54,7 @@
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/prerender/prerender_manager.h"
#include "chrome/browser/prerender/prerender_plt_recorder.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"
@@ -268,6 +269,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_(),
@@ -381,6 +384,7 @@
AddObserver(desktop_notification_handler_.get());
plugin_observer_.reset(new PluginObserver(this));
AddObserver(plugin_observer_.get());
+ AddObserver(print_preview_.get());
}
TabContents::~TabContents() {
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698