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/core/html/PublicURLManager.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/core/html/PublicURLManager.cpp
diff --git a/third_party/WebKit/Source/core/html/PublicURLManager.cpp b/third_party/WebKit/Source/core/html/PublicURLManager.cpp
index 4695a7a9ab34e05891b79c1d0bbf3698bdc1ad65..27d11b79a9cd3ab95041a73fdae3ec40a101fc75 100644
--- a/third_party/WebKit/Source/core/html/PublicURLManager.cpp
+++ b/third_party/WebKit/Source/core/html/PublicURLManager.cpp
@@ -37,13 +37,11 @@ namespace blink {
class SecurityOrigin;
PublicURLManager* PublicURLManager::create(ExecutionContext* context) {
- PublicURLManager* publicURLManager = new PublicURLManager(context);
- publicURLManager->suspendIfNeeded();
- return publicURLManager;
+ return new PublicURLManager(context);
}
PublicURLManager::PublicURLManager(ExecutionContext* context)
- : SuspendableObject(context), m_isStopped(false) {}
+ : ContextLifecycleObserver(context), m_isStopped(false) {}
String PublicURLManager::registerURL(ExecutionContext* context,
URLRegistrable* registrable,
@@ -107,7 +105,7 @@ void PublicURLManager::contextDestroyed() {
}
DEFINE_TRACE(PublicURLManager) {
- SuspendableObject::trace(visitor);
+ ContextLifecycleObserver::trace(visitor);
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/html/PublicURLManager.h ('k') | third_party/WebKit/Source/core/streams/UnderlyingSourceBase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698