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

Unified Diff: ios/chrome/browser/signin/signin_error_controller_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/signin/signin_error_controller_factory.cc
diff --git a/ios/chrome/browser/signin/signin_error_controller_factory.cc b/ios/chrome/browser/signin/signin_error_controller_factory.cc
index 86106b20f30be47c680cf0b5b9524dde0a85b634..e95968021fd920c9a710b5d241e182291294dd29 100644
--- a/ios/chrome/browser/signin/signin_error_controller_factory.cc
+++ b/ios/chrome/browser/signin/signin_error_controller_factory.cc
@@ -4,6 +4,7 @@
#include "ios/chrome/browser/signin/signin_error_controller_factory.h"
+#include "base/memory/ptr_util.h"
#include "base/memory/singleton.h"
#include "components/keyed_service/core/service_access_type.h"
#include "components/keyed_service/ios/browser_state_dependency_manager.h"
@@ -33,9 +34,10 @@ SigninErrorControllerFactory::SigninErrorControllerFactory()
SigninErrorControllerFactory::~SigninErrorControllerFactory() {
}
-scoped_ptr<KeyedService> SigninErrorControllerFactory::BuildServiceInstanceFor(
+std::unique_ptr<KeyedService>
+SigninErrorControllerFactory::BuildServiceInstanceFor(
web::BrowserState* context) const {
- return make_scoped_ptr(new SigninErrorController);
+ return base::WrapUnique(new SigninErrorController);
}
} // namespace ios
« no previous file with comments | « ios/chrome/browser/signin/signin_error_controller_factory.h ('k') | ios/chrome/browser/signin/signin_manager_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698