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

Side by Side Diff: chrome/service/cloud_print/printer_job_queue_handler.cc

Issue 12813004: Chromium style checker cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/service/cloud_print/printer_job_queue_handler.h" 5 #include "chrome/service/cloud_print/printer_job_queue_handler.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
11 #include "base/values.h" 11 #include "base/values.h"
12 12
13 namespace cloud_print { 13 namespace cloud_print {
14 14
15 class TimeProviderImpl : public PrinterJobQueueHandler::TimeProvider { 15 class TimeProviderImpl : public PrinterJobQueueHandler::TimeProvider {
16 public: 16 public:
17 base::Time GetNow(); 17 virtual base::Time GetNow() OVERRIDE;
18 }; 18 };
19 19
20 base::Time TimeProviderImpl::GetNow() { 20 base::Time TimeProviderImpl::GetNow() {
21 return base::Time::Now(); 21 return base::Time::Now();
22 } 22 }
23 23
24 JobDetails::JobDetails() {} 24 JobDetails::JobDetails() {}
25 25
26 JobDetails::~JobDetails() {} 26 JobDetails::~JobDetails() {}
27 27
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 156
157 job_found.first->second.retries_ += 1; 157 job_found.first->second.retries_ += 1;
158 job_found.first->second.last_retry_ = time_provider_->GetNow(); 158 job_found.first->second.last_retry_ = time_provider_->GetNow();
159 } 159 }
160 160
161 return true; 161 return true;
162 } 162 }
163 163
164 } // namespace cloud_print 164 } // namespace cloud_print
165 165
OLDNEW
« no previous file with comments | « chrome/service/cloud_print/printer_job_handler_unittest.cc ('k') | chrome/test/chromedriver/session_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698