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

Unified Diff: content/browser/background_sync/background_sync_context.h

Issue 2435863004: Remove stl_util's deletion function use from content/. (Closed)
Patch Set: minus service worker Created 4 years, 2 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/background_sync/background_sync_context.h
diff --git a/content/browser/background_sync/background_sync_context.h b/content/browser/background_sync/background_sync_context.h
index 9f2c986c15dddacef99bdbc010b7bc5cdaa2ab66..4d3ecf32a07e8e903cc9e4937cc35334af2cac73 100644
--- a/content/browser/background_sync/background_sync_context.h
+++ b/content/browser/background_sync/background_sync_context.h
@@ -5,8 +5,8 @@
#ifndef CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_CONTEXT_H_
#define CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_CONTEXT_H_
+#include <map>
#include <memory>
-#include <set>
#include "base/macros.h"
#include "base/memory/ref_counted.h"
@@ -70,7 +70,9 @@ class CONTENT_EXPORT BackgroundSyncContext
// The services are owned by this. They're either deleted
// during ShutdownOnIO or when the channel is closed via
// ServiceHadConnectionError. Only accessed on the IO thread.
- std::set<BackgroundSyncServiceImpl*> services_;
+ std::map<BackgroundSyncServiceImpl*,
+ std::unique_ptr<BackgroundSyncServiceImpl>>
+ services_;
DISALLOW_COPY_AND_ASSIGN(BackgroundSyncContext);
};
« no previous file with comments | « content/browser/appcache/appcache_service_impl.cc ('k') | content/browser/background_sync/background_sync_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698