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

Unified Diff: ui/views/accessibility/ax_aura_obj_cache.h

Issue 2348953002: Remove stl_util's STLDeleteContainerPairSecondPointers from ui/. (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
Index: ui/views/accessibility/ax_aura_obj_cache.h
diff --git a/ui/views/accessibility/ax_aura_obj_cache.h b/ui/views/accessibility/ax_aura_obj_cache.h
index 321b4162184468be149afe39bce2b52e1740b5b7..fc9a8c91352eb1775f2bb9da12dad9c80ed56653 100644
--- a/ui/views/accessibility/ax_aura_obj_cache.h
+++ b/ui/views/accessibility/ax_aura_obj_cache.h
@@ -8,6 +8,7 @@
#include <stdint.h>
#include <map>
+#include <memory>
#include <vector>
#include "base/macros.h"
@@ -119,7 +120,7 @@ class VIEWS_EXPORT AXAuraObjCache
std::map<views::Widget*, int32_t> widget_to_id_map_;
std::map<aura::Window*, int32_t> window_to_id_map_;
- std::map<int32_t, AXAuraObjWrapper*> cache_;
+ std::map<int32_t, std::unique_ptr<AXAuraObjWrapper>> cache_;
int32_t current_id_;
aura::client::FocusClient* focus_client_;

Powered by Google App Engine
This is Rietveld 408576698