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

Unified Diff: content/renderer/android/email_detector.cc

Issue 1873783003: Convert //content/renderer 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
Index: content/renderer/android/email_detector.cc
diff --git a/content/renderer/android/email_detector.cc b/content/renderer/android/email_detector.cc
index 9508679badab3f5e5370a40f2bc2c9b5098f55b7..564f3417305fc2c398de64931377835829b62fdb 100644
--- a/content/renderer/android/email_detector.cc
+++ b/content/renderer/android/email_detector.cc
@@ -4,8 +4,9 @@
#include "content/renderer/android/email_detector.h"
+#include <memory>
+
#include "base/logging.h"
-#include "base/memory/scoped_ptr.h"
#include "base/strings/utf_string_conversions.h"
#include "content/public/renderer/android_content_detection_prefixes.h"
#include "net/base/escape.h"
@@ -52,11 +53,8 @@ bool EmailDetector::FindContent(const base::string16::const_iterator& begin,
icu::UnicodeString pattern(kEmailRegex);
icu::UnicodeString input(utf16_input.data(), utf16_input.length());
UErrorCode status = U_ZERO_ERROR;
- scoped_ptr<icu::RegexMatcher> matcher(
- new icu::RegexMatcher(pattern,
- input,
- UREGEX_CASE_INSENSITIVE,
- status));
+ std::unique_ptr<icu::RegexMatcher> matcher(
+ new icu::RegexMatcher(pattern, input, UREGEX_CASE_INSENSITIVE, status));
if (matcher->find()) {
*start_pos = matcher->start(status);
DCHECK(U_SUCCESS(status));

Powered by Google App Engine
This is Rietveld 408576698