Chromium Code Reviews| 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 54eacd657f51bf4593d953a1f8bdf61a97cf6656..69c6448aef8566b09182ba2be5a226f45bd0ddf0 100644 |
| --- a/content/browser/service_worker/service_worker_storage.cc |
| +++ b/content/browser/service_worker/service_worker_storage.cc |
| @@ -457,6 +457,16 @@ void ServiceWorkerStorage::StoreRegistration( |
| callback))); |
| registration->set_is_deleted(false); |
| + |
| + // TODO(dmurph): Add correct byte delta. |
| + if (quota_manager_proxy_.get() != nullptr) { |
|
michaeln
2014/10/14 00:50:31
nit: don't need to comparison to nullptr
dmurph
2014/10/14 21:04:50
Done.
|
| + // Can be nullptr in tests. |
| + quota_manager_proxy_->NotifyStorageModified( |
| + storage::QuotaClient::kServiceWorker, |
| + registration->pattern().GetOrigin(), |
| + storage::StorageType::kStorageTypeTemporary, |
| + 0); |
| + } |
| } |
| void ServiceWorkerStorage::UpdateToActiveState( |