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

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: fix build after r84303 Created 9 years, 8 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/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,13 @@
return NULL;
}
+printing::BackgroundPrintingManager*
+TestingBrowserProcess::background_printing_manager() {
+ if (!background_printing_manager_.get())
+ background_printing_manager_ = new printing::BackgroundPrintingManager();
+ return background_printing_manager_.get();
+}
+
const std::string& TestingBrowserProcess::GetApplicationLocale() {
return app_locale_;
}

Powered by Google App Engine
This is Rietveld 408576698