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

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

Issue 2413063003: service worker: Add promise boilerplate for NavigationPreload enable/disable (Closed)
Patch Set: more boilerplate Created 4 years, 2 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: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerRegistration.cpp
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerRegistration.cpp b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerRegistration.cpp
index 57960776842873353b831d33df49b2993edd38d1..516e59a8d641c2cdfb41df6d8f017be8cdbd63cb 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerRegistration.cpp
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerRegistration.cpp
@@ -76,7 +76,7 @@ ServiceWorkerRegistration* ServiceWorkerRegistration::getOrCreate(
NavigationPreloadManager* ServiceWorkerRegistration::navigationPreload() {
if (!m_navigationPreload)
- m_navigationPreload = NavigationPreloadManager::create();
+ m_navigationPreload = NavigationPreloadManager::create(this);
return m_navigationPreload;
}

Powered by Google App Engine
This is Rietveld 408576698