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

Unified Diff: chrome/browser/task_management/providers/web_contents/web_contents_task_provider.h

Issue 2183023005: TaskManager: unique_ptr<> ownership of TaskGroups (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tm_default_selection
Patch Set: TaskManager: use containers of unique_ptrs instead of stl_util.h Created 4 years, 5 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: chrome/browser/task_management/providers/web_contents/web_contents_task_provider.h
diff --git a/chrome/browser/task_management/providers/web_contents/web_contents_task_provider.h b/chrome/browser/task_management/providers/web_contents/web_contents_task_provider.h
index 9cf0ae6b582fbfc479b8349ee18699e419c0b701..40251c1eaee98f7caf93a03f51d9b114999c2afc 100644
--- a/chrome/browser/task_management/providers/web_contents/web_contents_task_provider.h
+++ b/chrome/browser/task_management/providers/web_contents/web_contents_task_provider.h
@@ -56,8 +56,8 @@ class WebContentsTaskProvider : public TaskProvider {
// A map to associate a |WebContents| with its corresponding entry that we
// create for it to be able to track it.
- using EntryMap = std::map<content::WebContents*, WebContentsEntry*>;
- EntryMap entries_map_;
+ std::map<content::WebContents*, std::unique_ptr<WebContentsEntry>>
+ entries_map_;
// True if this provider is listening to WebContentsTags and updating its
// observers, false otherwise.

Powered by Google App Engine
This is Rietveld 408576698