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

Unified Diff: content/browser/service_worker/service_worker_version.h

Issue 2778173002: Revert of "Speculatively launch Service Workers on mouse/touch events." (Closed)
Patch Set: rebase Created 3 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/service_worker/service_worker_version.h
diff --git a/content/browser/service_worker/service_worker_version.h b/content/browser/service_worker/service_worker_version.h
index 314c91f17ec77e64527db42c9929b9bd4acbb48a..5ae425b0575b8dff81a047f865ae9bb8c848605e 100644
--- a/content/browser/service_worker/service_worker_version.h
+++ b/content/browser/service_worker/service_worker_version.h
@@ -23,7 +23,6 @@
#include "base/memory/ptr_util.h"
#include "base/memory/ref_counted.h"
#include "base/observer_list.h"
-#include "base/optional.h"
#include "base/threading/thread_task_runner_handle.h"
#include "base/time/tick_clock.h"
#include "base/time/time.h"
@@ -761,8 +760,7 @@ class CONTENT_EXPORT ServiceWorkerVersion
// event ended).
void OnBeginEvent();
- // Resets |start_worker_first_purpose_| and fires and clears all start
- // callbacks.
+ // Fires and clears all start callbacks.
void FinishStartWorker(ServiceWorkerStatusCode status);
// Removes any pending external request that has GUID of |request_uuid|.
@@ -864,10 +862,6 @@ class CONTENT_EXPORT ServiceWorkerVersion
bool stop_when_devtools_detached_ = false;
- // Keeps the first purpose of starting the worker for UMA. Cleared in
- // FinishStartWorker().
- base::Optional<ServiceWorkerMetrics::EventType> start_worker_first_purpose_;
-
// This is the set of features that were used up until installation of this
// version completed, or used during the lifetime of |this|. The values must
// be from blink::UseCounter::Feature enum.
« no previous file with comments | « content/browser/service_worker/service_worker_metrics.cc ('k') | content/browser/service_worker/service_worker_version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698