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

Unified Diff: chrome/test/testing_browser_process.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/test/testing_browser_process.h ('k') | content/common/notification_type.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/testing_browser_process.cc
===================================================================
--- chrome/test/testing_browser_process.cc (revision 84344)
+++ chrome/test/testing_browser_process.cc (working copy)
@@ -13,6 +13,7 @@
#include "chrome/browser/policy/configuration_policy_provider.h"
#include "chrome/browser/policy/dummy_configuration_policy_provider.h"
#include "chrome/browser/prefs/pref_service.h"
+#include "chrome/browser/printing/background_printing_manager.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "net/url_request/url_request_context_getter.h"
#include "ui/base/clipboard/clipboard.h"
@@ -178,7 +179,7 @@
}
unsigned int TestingBrowserProcess::ReleaseModule() {
- DCHECK(module_ref_count_ > 0);
+ DCHECK_GT(module_ref_count_, 0U);
return --module_ref_count_;
}
@@ -195,6 +196,15 @@
return NULL;
}
+printing::BackgroundPrintingManager*
+TestingBrowserProcess::background_printing_manager() {
+ if (!background_printing_manager_.get()) {
+ background_printing_manager_.reset(
+ new printing::BackgroundPrintingManager());
+ }
+ return background_printing_manager_.get();
+}
+
const std::string& TestingBrowserProcess::GetApplicationLocale() {
return app_locale_;
}
« no previous file with comments | « chrome/test/testing_browser_process.h ('k') | content/common/notification_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698