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

Unified Diff: chrome/browser/android/preferences/important_sites_util_unittest.cc

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
Index: chrome/browser/android/preferences/important_sites_util_unittest.cc
diff --git a/chrome/browser/android/preferences/important_sites_util_unittest.cc b/chrome/browser/android/preferences/important_sites_util_unittest.cc
index 5d72738ef430079c4b240210175cb43cd96399fc..d982c98f005bc3af10e9dc4c7fa9309f1524031a 100644
--- a/chrome/browser/android/preferences/important_sites_util_unittest.cc
+++ b/chrome/browser/android/preferences/important_sites_util_unittest.cc
@@ -33,9 +33,10 @@ namespace {
const size_t kNumImportantSites = 5;
base::FilePath g_temp_history_dir;
-scoped_ptr<KeyedService> BuildTestHistoryService(
+std::unique_ptr<KeyedService> BuildTestHistoryService(
content::BrowserContext* context) {
- scoped_ptr<history::HistoryService> service(new history::HistoryService());
+ std::unique_ptr<history::HistoryService> service(
+ new history::HistoryService());
service->Init(history::TestHistoryDatabaseParamsForPath(g_temp_history_dir));
return std::move(service);
}

Powered by Google App Engine
This is Rietveld 408576698