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

Unified Diff: chrome/browser/browser_process_impl.cc

Issue 4338001: Implement print preview tab controller. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 10 years, 1 month 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/browser_process_impl.h ('k') | chrome/browser/printing/print_preview_tab_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_process_impl.cc
diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_process_impl.cc
index 5331621a79c11b6405b8b051cc907481e838e41f..bf1a52f2da288cc539fa678a1c5c431a96f97df0 100644
--- a/chrome/browser/browser_process_impl.cc
+++ b/chrome/browser/browser_process_impl.cc
@@ -41,6 +41,7 @@
#include "chrome/browser/plugin_updater.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/printing/print_job_manager.h"
+#include "chrome/browser/printing/print_preview_tab_controller.h"
#include "chrome/browser/profile_manager.h"
#include "chrome/browser/renderer_host/render_process_host.h"
#include "chrome/browser/renderer_host/resource_dispatcher_host.h"
@@ -434,6 +435,14 @@ printing::PrintJobManager* BrowserProcessImpl::print_job_manager() {
return print_job_manager_.get();
}
+printing::PrintPreviewTabController*
+ BrowserProcessImpl::print_preview_tab_controller() {
+ DCHECK(CalledOnValidThread());
+ if (!print_preview_tab_controller_.get())
+ CreatePrintPreviewTabController();
+ return print_preview_tab_controller_.get();
+}
+
GoogleURLTracker* BrowserProcessImpl::google_url_tracker() {
DCHECK(CalledOnValidThread());
if (!google_url_tracker_.get())
@@ -699,6 +708,11 @@ void BrowserProcessImpl::CreateTabCloseableStateWatcher() {
tab_closeable_state_watcher_.reset(TabCloseableStateWatcher::Create());
}
+void BrowserProcessImpl::CreatePrintPreviewTabController() {
+ DCHECK(print_preview_tab_controller_.get() == NULL);
+ print_preview_tab_controller_ = new printing::PrintPreviewTabController();
+}
+
// The BrowserProcess object must outlive the file thread so we use traits
// which don't do any management.
DISABLE_RUNNABLE_METHOD_REFCOUNT(BrowserProcessImpl);
« no previous file with comments | « chrome/browser/browser_process_impl.h ('k') | chrome/browser/printing/print_preview_tab_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698