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

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

Issue 1099383002: Change ScopedPtrHashMap's 2nd template parameter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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_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, &registration_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;

Powered by Google App Engine
This is Rietveld 408576698