Index: components/query_parser/snippet.cc |
diff --git a/components/query_parser/snippet.cc b/components/query_parser/snippet.cc |
index f704409cdc5d311d89903d97245915c1ab44b51f..f540be5ca32f3bda4998e2b8a016c4d34e66b819 100644 |
--- a/components/query_parser/snippet.cc |
+++ b/components/query_parser/snippet.cc |
@@ -7,9 +7,9 @@ |
#include <stdint.h> |
#include <algorithm> |
+#include <memory> |
#include "base/logging.h" |
-#include "base/memory/scoped_ptr.h" |
#include "base/strings/string_split.h" |
#include "base/strings/string_util.h" |
#include "base/strings/utf_string_conversions.h" |
@@ -226,8 +226,9 @@ void Snippet::ComputeSnippet(const MatchPositions& match_positions, |
document.size(), &status); |
// Locale does not matter because there's no per-locale customization |
// for character iterator. |
- scoped_ptr<icu::BreakIterator> bi(icu::BreakIterator::createCharacterInstance( |
- icu::Locale::getDefault(), status)); |
+ std::unique_ptr<icu::BreakIterator> bi( |
+ icu::BreakIterator::createCharacterInstance(icu::Locale::getDefault(), |
+ status)); |
bi->setText(document_utext, status); |
DCHECK(U_SUCCESS(status)); |