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

Unified Diff: chrome/browser/printing/print_job_manager.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.cc ('k') | chrome/browser/printing/print_job_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/printing/print_job_manager.cc
diff --git a/chrome/browser/printing/print_job_manager.cc b/chrome/browser/printing/print_job_manager.cc
index 8d0334f1d841d2f9d145654b121d7c256b8347e2..e83238c40449d26c73e6c3519ece25e1c152772e 100644
--- a/chrome/browser/printing/print_job_manager.cc
+++ b/chrome/browser/printing/print_job_manager.cc
@@ -50,9 +50,9 @@ void PrintJobManager::StopJobs(bool wait_for_finish) {
PrintJob* job = current_jobs[i];
if (!job)
continue;
- // Wait for 120 seconds for the print job to be spooled.
+ // Wait for two minutes for the print job to be spooled.
if (wait_for_finish)
- job->FlushJob(120000);
+ job->FlushJob(base::TimeDelta::FromMinutes(2));
job->Stop();
}
}
« no previous file with comments | « chrome/browser/printing/print_job.cc ('k') | chrome/browser/printing/print_job_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698