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

Unified Diff: ios/chrome/browser/ui/authentication/chrome_signin_view_controller.mm

Issue 2920853006: Removes usage of signin APIs that return scoped_nsobjects. (Closed)
Patch Set: Created 3 years, 7 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/ui/authentication/chrome_signin_view_controller.mm
diff --git a/ios/chrome/browser/ui/authentication/chrome_signin_view_controller.mm b/ios/chrome/browser/ui/authentication/chrome_signin_view_controller.mm
index f83d98901f83212fb595569635c21631c50ed915..312c21e74d9000c9cfb64e9ccf3e96c595b0bae1 100644
--- a/ios/chrome/browser/ui/authentication/chrome_signin_view_controller.mm
+++ b/ios/chrome/browser/ui/authentication/chrome_signin_view_controller.mm
@@ -358,10 +358,10 @@ void HideButton(UIButton* button) {
- (void)openAuthenticationDialogAddIdentity {
DCHECK(!_interactionManager);
- _interactionManager =
+ _interactionManager.reset(
ios::GetChromeBrowserProvider()
->GetChromeIdentityService()
- ->NewChromeIdentityInteractionManager(_browserState, self);
+ ->CreateChromeIdentityInteractionManager(_browserState, self));
base::WeakNSObject<ChromeSigninViewController> weakSelf(self);
SigninCompletionCallback completion =
^(ChromeIdentity* identity, NSError* error) {

Powered by Google App Engine
This is Rietveld 408576698