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

Unified Diff: ios/chrome/browser/history/history_client_impl.cc

Issue 1861593005: Convert //ios from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase? 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: ios/chrome/browser/history/history_client_impl.cc
diff --git a/ios/chrome/browser/history/history_client_impl.cc b/ios/chrome/browser/history/history_client_impl.cc
index 780a59dfcc6d2d0ebd66a1e818d5d37b240f767b..35860d1d33b6af8e298d2b3513eecbe180052415 100644
--- a/ios/chrome/browser/history/history_client_impl.cc
+++ b/ios/chrome/browser/history/history_client_impl.cc
@@ -7,6 +7,7 @@
#include "base/bind.h"
#include "base/callback.h"
#include "base/logging.h"
+#include "base/memory/ptr_util.h"
#include "components/bookmarks/browser/bookmark_model.h"
#include "components/history/core/browser/history_service.h"
#include "ios/chrome/browser/history/history_backend_client_impl.h"
@@ -62,9 +63,9 @@ bool HistoryClientImpl::CanAddURL(const GURL& url) {
void HistoryClientImpl::NotifyProfileError(sql::InitStatus init_status) {
}
-scoped_ptr<history::HistoryBackendClient>
+std::unique_ptr<history::HistoryBackendClient>
HistoryClientImpl::CreateBackendClient() {
- return make_scoped_ptr(new HistoryBackendClientImpl(bookmark_model_));
+ return base::WrapUnique(new HistoryBackendClientImpl(bookmark_model_));
}
void HistoryClientImpl::BookmarkModelChanged() {
« no previous file with comments | « ios/chrome/browser/history/history_client_impl.h ('k') | ios/chrome/browser/history/history_service_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698