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

Unified Diff: content/browser/background_sync/background_sync_manager.cc

Issue 2274283003: Use mojo.common.mojom.Time for dispatch_event_time in background_sync.mojom (Closed)
Patch Set: Created 4 years, 4 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 | content/renderer/background_sync/background_sync_client_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/background_sync/background_sync_manager.cc
diff --git a/content/browser/background_sync/background_sync_manager.cc b/content/browser/background_sync/background_sync_manager.cc
index f9d819a709c407e8509b7ea8b200b9cb4beb5ee2..1f8d22f09be375aef11623cc6479f5beef94b638 100644
--- a/content/browser/background_sync/background_sync_manager.cc
+++ b/content/browser/background_sync/background_sync_manager.cc
@@ -151,11 +151,11 @@ void OnSyncEventFinished(scoped_refptr<ServiceWorkerVersion> active_version,
int request_id,
const ServiceWorkerVersion::StatusCallback& callback,
blink::mojom::ServiceWorkerEventStatus status,
- double dispatch_event_time) {
+ base::Time dispatch_event_time) {
if (!active_version->FinishRequest(
request_id,
status == blink::mojom::ServiceWorkerEventStatus::COMPLETED,
- base::Time::FromDoubleT(dispatch_event_time))) {
+ dispatch_event_time)) {
return;
}
callback.Run(mojo::ConvertTo<ServiceWorkerStatusCode>(status));
« no previous file with comments | « no previous file | content/renderer/background_sync/background_sync_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698