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

Unified Diff: chrome/browser/printing/print_job.cc

Issue 329683002: Improvements in --debug-print switch implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Wed 06/11/2014 14:29:57.35 Created 6 years, 6 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 | « no previous file | chrome/browser/printing/print_job_worker.cc » ('j') | printing/printed_document.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/printing/print_job.cc
diff --git a/chrome/browser/printing/print_job.cc b/chrome/browser/printing/print_job.cc
index 0171951e2b2bf66975b322b6bc932e81d07bf5e0..1af645957c1f1130cbbbac674c7cc27656de0bcb 100644
--- a/chrome/browser/printing/print_job.cc
+++ b/chrome/browser/printing/print_job.cc
@@ -12,6 +12,7 @@
#include "base/timer/timer.h"
#include "chrome/browser/chrome_notification_types.h"
#include "chrome/browser/printing/print_job_worker.h"
+#include "content/public/browser/browser_thread.h"
#include "content/public/browser/notification_service.h"
#include "printing/printed_document.h"
#include "printing/printed_page.h"
@@ -68,8 +69,12 @@ void PrintJob::Initialize(PrintJobWorkerOwner* job,
worker_.reset(job->DetachWorker(this));
settings_ = job->settings();
- PrintedDocument* new_doc =
- new PrintedDocument(settings_, source_, job->cookie());
+ using content::BrowserThread;
+ PrintedDocument* new_doc = new PrintedDocument(
+ settings_,
+ source_,
+ job->cookie(),
+ BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE));
Lei Zhang 2014/06/11 21:43:42 Can you use BrowserThread::GetBlockingPool() inste
Vitaly Buka (NO REVIEWS) 2014/06/11 22:22:58 Done.
new_doc->set_page_count(page_count);
UpdatePrintedDocument(new_doc);
« no previous file with comments | « no previous file | chrome/browser/printing/print_job_worker.cc » ('j') | printing/printed_document.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698