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

Unified Diff: chrome/browser/command_updater.h

Issue 2318303002: Remove stl_util's STLDeleteContainerPairSecondPointers. (Closed)
Patch Set: fix 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/browsing_data/browsing_data_cookie_helper.cc ('k') | chrome/browser/command_updater.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/command_updater.h
diff --git a/chrome/browser/command_updater.h b/chrome/browser/command_updater.h
index a624df99a05029bcf14687ca1ab4a29dac994d5a..31a4e9130600e8ccf8a63cb2cda183de9361c8ce 100644
--- a/chrome/browser/command_updater.h
+++ b/chrome/browser/command_updater.h
@@ -5,6 +5,8 @@
#ifndef CHROME_BROWSER_COMMAND_UPDATER_H_
#define CHROME_BROWSER_COMMAND_UPDATER_H_
+#include <memory>
+
#include "base/containers/hash_tables.h"
#include "base/macros.h"
#include "ui/base/window_open_disposition.h"
@@ -75,8 +77,7 @@ class CommandUpdater {
CommandUpdaterDelegate* delegate_;
// This is a map of command IDs to states and observer lists
- typedef base::hash_map<int, Command*> CommandMap;
- CommandMap commands_;
+ base::hash_map<int, std::unique_ptr<Command>> commands_;
DISALLOW_COPY_AND_ASSIGN(CommandUpdater);
};
« no previous file with comments | « chrome/browser/browsing_data/browsing_data_cookie_helper.cc ('k') | chrome/browser/command_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698