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

Unified Diff: chrome/browser/sync_file_system/task_logger.h

Issue 2314833002: Remove some uses of stl_util's STLDeleteContainerPointers. (Closed)
Patch Set: cleanup Created 4 years, 3 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
« no previous file with comments | « chrome/browser/safe_browsing/ping_manager.cc ('k') | chrome/browser/sync_file_system/task_logger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync_file_system/task_logger.h
diff --git a/chrome/browser/sync_file_system/task_logger.h b/chrome/browser/sync_file_system/task_logger.h
index 3197ca71663a4aa1e337bc5d4bfef05ab9e0f443..47bac34f42b3b57d6da0ecbbf133b76d385524af 100644
--- a/chrome/browser/sync_file_system/task_logger.h
+++ b/chrome/browser/sync_file_system/task_logger.h
@@ -31,7 +31,7 @@ class TaskLogger : public base::SupportsWeakPtr<TaskLogger> {
~TaskLog();
};
- typedef std::deque<TaskLog*> LogList;
+ using LogList = std::deque<std::unique_ptr<TaskLog>>;
class Observer {
public:
@@ -57,7 +57,7 @@ class TaskLogger : public base::SupportsWeakPtr<TaskLogger> {
const LogList& GetLog() const;
private:
- std::deque<TaskLog*> log_history_;
+ LogList log_history_;
base::ObserverList<Observer> observers_;
« no previous file with comments | « chrome/browser/safe_browsing/ping_manager.cc ('k') | chrome/browser/sync_file_system/task_logger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698