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

Unified Diff: content/browser/service_worker/service_worker_storage.cc

Issue 360123002: ServiceWorker: some more groundwork in support of the update process (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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_storage.cc
diff --git a/content/browser/service_worker/service_worker_storage.cc b/content/browser/service_worker/service_worker_storage.cc
index 0697b8ed0160d3a58dab33aa6d1224a700b9673b..8018afee8628553fa634f319125d854d002587b6 100644
--- a/content/browser/service_worker/service_worker_storage.cc
+++ b/content/browser/service_worker/service_worker_storage.cc
@@ -746,9 +746,9 @@ ServiceWorkerStorage::GetOrCreateRegistration(
}
if (version->status() == ServiceWorkerVersion::ACTIVE)
- registration->set_active_version(version);
+ registration->SetActiveVersion(version);
else if (version->status() == ServiceWorkerVersion::INSTALLED)
- registration->set_waiting_version(version);
+ registration->SetWaitingVersion(version);
else
NOTREACHED();
// TODO(michaeln): Hmmm, what if DeleteReg was invoked after

Powered by Google App Engine
This is Rietveld 408576698