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

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

Issue 10412028: Convert printing code to use base::TimeDelta in PostDelayedTask interfaces. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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/printing/print_job.h ('k') | chrome/browser/printing/print_job_manager.cc » ('j') | no next file with comments »
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 b5e34cfda36523c167a288b3eda857e3d4ccb04e..3d63d3371cec9021d3d90a6573c87658fccdee7c 100644
--- a/chrome/browser/printing/print_job.cc
+++ b/chrome/browser/printing/print_job.cc
@@ -197,12 +197,12 @@ void PrintJob::Cancel() {
is_canceling_ = false;
}
-bool PrintJob::FlushJob(int timeout_ms) {
+bool PrintJob::FlushJob(base::TimeDelta timeout) {
// Make sure the object outlive this message loop.
scoped_refptr<PrintJob> handle(this);
MessageLoop::current()->PostDelayedTask(FROM_HERE,
- base::Bind(&PrintJob::Quit, quit_factory_.GetWeakPtr()), timeout_ms);
+ base::Bind(&PrintJob::Quit, quit_factory_.GetWeakPtr()), timeout);
MessageLoop::ScopedNestableTaskAllower allow(MessageLoop::current());
MessageLoop::current()->Run();
« no previous file with comments | « chrome/browser/printing/print_job.h ('k') | chrome/browser/printing/print_job_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698