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

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorker.cpp

Issue 2583093002: Reduce SuspendableObjects (Closed)
Patch Set: Created 4 years 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: third_party/WebKit/Source/modules/serviceworkers/ServiceWorker.cpp
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorker.cpp b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorker.cpp
index 2bb5387e666c53b7eb81846cabcd0c090eba34f3..7bb0caf9c973550685f4a85e293a7cfec5ccbec3 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorker.cpp
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorker.cpp
@@ -144,10 +144,7 @@ ServiceWorker* ServiceWorker::getOrCreate(
return existingWorker;
}
- ServiceWorker* newWorker =
- new ServiceWorker(executionContext, std::move(handle));
- newWorker->suspendIfNeeded();
- return newWorker;
+ return new ServiceWorker(executionContext, std::move(handle));
}
ServiceWorker::ServiceWorker(ExecutionContext* executionContext,

Powered by Google App Engine
This is Rietveld 408576698