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

Unified Diff: components/query_parser/snippet.cc

Issue 1921923002: Convert //components/[o-t]* 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/proxy_config/proxy_config_dictionary_unittest.cc ('k') | components/quirks/quirks_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
« no previous file with comments | « components/proxy_config/proxy_config_dictionary_unittest.cc ('k') | components/quirks/quirks_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698