Index: content/browser/service_worker/service_worker_database.h |
diff --git a/content/browser/service_worker/service_worker_database.h b/content/browser/service_worker/service_worker_database.h |
index 59b27648155b2298d6ba4fc8cd73a4f8834602bd..d8dbd07b4a822f4b1ba7ea268609c34e6e3bb1c7 100644 |
--- a/content/browser/service_worker/service_worker_database.h |
+++ b/content/browser/service_worker/service_worker_database.h |
@@ -123,15 +123,15 @@ class CONTENT_EXPORT ServiceWorkerDatabase { |
// Writes |registration| and |resources| into the database and does following |
// things: |
// - If an old version of the registration exists, deletes it and sets |
- // |deleted_version_id| to the old version id and |
+ // |deleted_version| to the old version registration data object |
// |newly_purgeable_resources| to its resources. Otherwise, sets |
- // |deleted_version_id| to -1. |
+ // |deleted_version->version_id| to -1. |
// - Bumps the next registration id and the next version id if needed. |
// - Removes |resources| from the uncommitted list if exist. |
// Returns OK they are successfully written. Otherwise, returns an error. |
Status WriteRegistration(const RegistrationData& registration, |
const std::vector<ResourceRecord>& resources, |
- int64* deleted_version_id, |
+ RegistrationData* deleted_version, |
std::vector<int64>* newly_purgeable_resources); |
// Updates a registration for |registration_id| to an active state. Returns OK |