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

Unified Diff: ios/chrome/browser/signin/signin_client_impl.mm

Issue 2757873002: Change SigninClient::CreateGaiaAuthFetcher return type to unique_ptr (Closed)
Patch Set: Created 3 years, 9 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 | « ios/chrome/browser/signin/signin_client_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/signin/signin_client_impl.mm
diff --git a/ios/chrome/browser/signin/signin_client_impl.mm b/ios/chrome/browser/signin/signin_client_impl.mm
index 64ace6e5ca96a8b959f4d06c9ff9207041d71549..e0e0d3bdb2740a1861bcebf11a2e69f901b2a9ca 100644
--- a/ios/chrome/browser/signin/signin_client_impl.mm
+++ b/ios/chrome/browser/signin/signin_client_impl.mm
@@ -11,6 +11,7 @@
#include "base/command_line.h"
#include "base/guid.h"
#include "base/logging.h"
+#include "base/memory/ptr_util.h"
#include "base/strings/utf_string_conversions.h"
#include "components/content_settings/core/browser/cookie_settings.h"
#include "components/keyed_service/core/service_access_type.h"
@@ -231,9 +232,10 @@ void SigninClientImpl::DelayNetworkCall(const base::Closure& callback) {
}
}
-GaiaAuthFetcher* SigninClientImpl::CreateGaiaAuthFetcher(
+std::unique_ptr<GaiaAuthFetcher> SigninClientImpl::CreateGaiaAuthFetcher(
GaiaAuthConsumer* consumer,
const std::string& source,
net::URLRequestContextGetter* getter) {
- return new GaiaAuthFetcherIOS(consumer, source, getter, browser_state_);
+ return base::MakeUnique<GaiaAuthFetcherIOS>(consumer, source, getter,
+ browser_state_);
}
« no previous file with comments | « ios/chrome/browser/signin/signin_client_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698