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

Unified Diff: content/renderer/background_sync/background_sync_client_impl.cc

Issue 2218943002: Introduce ServiceWorker.EventDispatchingDelay UMA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: incorporated mpearson@'s comment 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
Index: content/renderer/background_sync/background_sync_client_impl.cc
diff --git a/content/renderer/background_sync/background_sync_client_impl.cc b/content/renderer/background_sync/background_sync_client_impl.cc
index bfa961e82c14c0e66e0752f5e4b95fee756ff4b8..f4b7d9372a0b8801d33c68ab9d8abbfcb7f52909 100644
--- a/content/renderer/background_sync/background_sync_client_impl.cc
+++ b/content/renderer/background_sync/background_sync_client_impl.cc
@@ -6,6 +6,7 @@
#include <utility>
+#include "base/time/time.h"
#include "content/child/background_sync/background_sync_provider.h"
#include "content/child/background_sync/background_sync_type_converters.h"
#include "content/renderer/service_worker/service_worker_context_client.h"
@@ -38,7 +39,8 @@ void BackgroundSyncClientImpl::Sync(
ServiceWorkerContextClient* client =
ServiceWorkerContextClient::ThreadSpecificInstance();
if (!client) {
- callback.Run(blink::mojom::ServiceWorkerEventStatus::ABORTED);
+ callback.Run(blink::mojom::ServiceWorkerEventStatus::ABORTED,
+ base::Time::Now().ToDoubleT());
return;
}

Powered by Google App Engine
This is Rietveld 408576698