Index: content/browser/service_worker/service_worker_context_watcher.cc |
diff --git a/content/browser/service_worker/service_worker_context_watcher.cc b/content/browser/service_worker/service_worker_context_watcher.cc |
index 7c69ea222f4fb70ebcfeceae35e4ad99d4651e7d..0bea44dd403676cc73cb446bed8a9fcce7664c37 100644 |
--- a/content/browser/service_worker/service_worker_context_watcher.cc |
+++ b/content/browser/service_worker/service_worker_context_watcher.cc |
@@ -63,7 +63,7 @@ void ServiceWorkerContextWatcher::OnStoredRegistrationsOnIOThread( |
DCHECK_CURRENTLY_ON(BrowserThread::IO); |
context_->AddObserver(this); |
- base::ScopedPtrHashMap<int64, ServiceWorkerRegistrationInfo> |
+ base::ScopedPtrHashMap<int64, scoped_ptr<ServiceWorkerRegistrationInfo>> |
registration_info_map; |
for (const auto& registration : stored_registrations) |
StoreRegistrationInfo(registration, ®istration_info_map); |
@@ -105,7 +105,8 @@ ServiceWorkerContextWatcher::~ServiceWorkerContextWatcher() { |
void ServiceWorkerContextWatcher::StoreRegistrationInfo( |
const ServiceWorkerRegistrationInfo& registration_info, |
- base::ScopedPtrHashMap<int64, ServiceWorkerRegistrationInfo>* info_map) { |
+ base::ScopedPtrHashMap<int64, scoped_ptr<ServiceWorkerRegistrationInfo>>* |
+ info_map) { |
DCHECK_CURRENTLY_ON(BrowserThread::IO); |
if (registration_info.registration_id == kInvalidServiceWorkerRegistrationId) |
return; |