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

Unified Diff: ios/chrome/browser/undo/bookmark_undo_service_factory.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/undo/bookmark_undo_service_factory.cc
diff --git a/ios/chrome/browser/undo/bookmark_undo_service_factory.cc b/ios/chrome/browser/undo/bookmark_undo_service_factory.cc
index f08731dc4b6577ca87bc9616beb7e6c2a2ad056e..b500a4aed9ef3e24abf355836ee39c4665d7d7b6 100644
--- a/ios/chrome/browser/undo/bookmark_undo_service_factory.cc
+++ b/ios/chrome/browser/undo/bookmark_undo_service_factory.cc
@@ -4,6 +4,7 @@
#include "ios/chrome/browser/undo/bookmark_undo_service_factory.h"
+#include "base/memory/ptr_util.h"
#include "base/memory/singleton.h"
#include "components/keyed_service/ios/browser_state_dependency_manager.h"
#include "components/undo/bookmark_undo_service.h"
@@ -39,9 +40,10 @@ BookmarkUndoServiceFactory::BookmarkUndoServiceFactory()
BookmarkUndoServiceFactory::~BookmarkUndoServiceFactory() {
}
-scoped_ptr<KeyedService> BookmarkUndoServiceFactory::BuildServiceInstanceFor(
+std::unique_ptr<KeyedService>
+BookmarkUndoServiceFactory::BuildServiceInstanceFor(
web::BrowserState* context) const {
- return make_scoped_ptr(new BookmarkUndoService);
+ return base::WrapUnique(new BookmarkUndoService);
}
} // namespace ios
« no previous file with comments | « ios/chrome/browser/undo/bookmark_undo_service_factory.h ('k') | ios/chrome/browser/updatable_config/updatable_config_base.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698