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

Unified Diff: content/browser/gpu/gpu_process_host_ui_shim.cc

Issue 2496653002: Part 2 of base::IDMap refactor to eliminate IDMapOwnPointer/IDMapExternalPointer modes (Closed)
Patch Set: typedefs => using statements, update comments in base/id_map.h Created 4 years 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/gpu/gpu_process_host_ui_shim.cc
diff --git a/content/browser/gpu/gpu_process_host_ui_shim.cc b/content/browser/gpu/gpu_process_host_ui_shim.cc
index 0714785c48228797f8b550b43f54a0f7ba2cc057..0ec82f4b7cb572920649ee7fbaf839da01e5c7df 100644
--- a/content/browser/gpu/gpu_process_host_ui_shim.cc
+++ b/content/browser/gpu/gpu_process_host_ui_shim.cc
@@ -40,7 +40,7 @@ namespace {
#undef DestroyAll
#endif
-base::LazyInstance<IDMap<GpuProcessHostUIShim> > g_hosts_by_id =
+base::LazyInstance<IDMap<GpuProcessHostUIShim*>> g_hosts_by_id =
LAZY_INSTANCE_INITIALIZER;
void SendOnIOThreadTask(int host_id, IPC::Message* msg) {
@@ -102,7 +102,7 @@ void GpuProcessHostUIShim::Destroy(int host_id, const std::string& message) {
void GpuProcessHostUIShim::DestroyAll() {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
while (!g_hosts_by_id.Pointer()->IsEmpty()) {
- IDMap<GpuProcessHostUIShim>::iterator it(g_hosts_by_id.Pointer());
+ IDMap<GpuProcessHostUIShim*>::iterator it(g_hosts_by_id.Pointer());
delete it.GetCurrentValue();
}
}
@@ -118,7 +118,7 @@ GpuProcessHostUIShim* GpuProcessHostUIShim::GetOneInstance() {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
if (g_hosts_by_id.Pointer()->IsEmpty())
return NULL;
- IDMap<GpuProcessHostUIShim>::iterator it(g_hosts_by_id.Pointer());
+ IDMap<GpuProcessHostUIShim*>::iterator it(g_hosts_by_id.Pointer());
return it.GetCurrentValue();
}
« no previous file with comments | « content/browser/cache_storage/cache_storage_cache.h ('k') | content/browser/manifest/manifest_manager_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698