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

Unified Diff: chrome/browser/browser_process_impl.cc

Issue 6930034: Print Preview: Print in the background. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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/browser_process_impl.h ('k') | chrome/browser/printing/background_printing_manager.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
===================================================================
--- chrome/browser/browser_process_impl.cc (revision 84344)
+++ chrome/browser/browser_process_impl.cc (working copy)
@@ -5,6 +5,8 @@
#include "chrome/browser/browser_process_impl.h"
#include <map>
+#include <set>
+#include <vector>
#include "base/command_line.h"
#include "base/file_util.h"
@@ -41,6 +43,7 @@
#include "chrome/browser/policy/browser_policy_connector.h"
#include "chrome/browser/prefs/browser_prefs.h"
#include "chrome/browser/prefs/pref_service.h"
+#include "chrome/browser/printing/background_printing_manager.h"
#include "chrome/browser/printing/print_job_manager.h"
#include "chrome/browser/printing/print_preview_tab_controller.h"
#include "chrome/browser/profiles/profile_manager.h"
@@ -561,6 +564,14 @@
return print_preview_tab_controller_.get();
}
+printing::BackgroundPrintingManager*
+ BrowserProcessImpl::background_printing_manager() {
+ DCHECK(CalledOnValidThread());
+ if (!background_printing_manager_.get())
+ CreateBackgroundPrintingManager();
+ return background_printing_manager_.get();
+}
+
GoogleURLTracker* BrowserProcessImpl::google_url_tracker() {
DCHECK(CalledOnValidThread());
if (!google_url_tracker_.get())
@@ -913,6 +924,11 @@
print_preview_tab_controller_ = new printing::PrintPreviewTabController();
}
+void BrowserProcessImpl::CreateBackgroundPrintingManager() {
+ DCHECK(background_printing_manager_.get() == NULL);
+ background_printing_manager_.reset(new printing::BackgroundPrintingManager());
+}
+
void BrowserProcessImpl::CreateSafeBrowsingDetectionService() {
DCHECK(safe_browsing_detection_service_.get() == NULL);
// Set this flag to true so that we don't retry indefinitely to
« no previous file with comments | « chrome/browser/browser_process_impl.h ('k') | chrome/browser/printing/background_printing_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698