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

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

Issue 1106723002: ServiceWorker: Decompose SWRegistration::SetVersionInternal for readability (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make the argument const-ref Created 5 years, 8 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 e36672947df02bb12384041e88ffd820bcb3bd8d..87b5d07be29651c32867806ab039d52f3810d4eb 100644
--- a/content/browser/service_worker/service_worker_storage.cc
+++ b/content/browser/service_worker/service_worker_storage.cc
@@ -1297,9 +1297,9 @@ ServiceWorkerStorage::GetOrCreateRegistration(
}
if (version->status() == ServiceWorkerVersion::ACTIVATED)
- registration->SetActiveVersion(version.get());
+ registration->SetActiveVersion(version);
else if (version->status() == ServiceWorkerVersion::INSTALLED)
- registration->SetWaitingVersion(version.get());
+ registration->SetWaitingVersion(version);
else
NOTREACHED();

Powered by Google App Engine
This is Rietveld 408576698