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

Unified Diff: components/feedback/anonymizer_tool.h

Issue 1918083002: Convert //components/[f-n]* from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: … Created 4 years, 8 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 | « components/favicon_base/large_icon_url_parser_unittest.cc ('k') | components/feedback/anonymizer_tool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/feedback/anonymizer_tool.h
diff --git a/components/feedback/anonymizer_tool.h b/components/feedback/anonymizer_tool.h
index d41b13b18b66ae9be88989380095735d71928758..e6e889ec6c6fe25185155618ec50010556baab32 100644
--- a/components/feedback/anonymizer_tool.h
+++ b/components/feedback/anonymizer_tool.h
@@ -6,11 +6,11 @@
#define COMPONENTS_FEEDBACK_ANONYMIZER_TOOL_H_
#include <map>
+#include <memory>
#include <string>
#include <vector>
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
namespace re2 {
class RE2;
@@ -68,7 +68,7 @@ class AnonymizerTool {
// Cache to prevent the repeated compilation of the same regular expression
// pattern. Key is the string representation of the RegEx.
- std::map<std::string, scoped_ptr<re2::RE2>> regexp_cache_;
+ std::map<std::string, std::unique_ptr<re2::RE2>> regexp_cache_;
DISALLOW_COPY_AND_ASSIGN(AnonymizerTool);
};
« no previous file with comments | « components/favicon_base/large_icon_url_parser_unittest.cc ('k') | components/feedback/anonymizer_tool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698