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

Unified Diff: ios/chrome/browser/passwords/passwords_ui_delegate_impl.mm

Issue 2932333002: [ObjC ARC] Converts ios/chrome/browser/passwords:passwords_internal to ARC. (Closed)
Patch Set: Created 3 years, 6 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/passwords/password_generation_prompt_view_controller.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/passwords/passwords_ui_delegate_impl.mm
diff --git a/ios/chrome/browser/passwords/passwords_ui_delegate_impl.mm b/ios/chrome/browser/passwords/passwords_ui_delegate_impl.mm
index 8fad3842e0da398314bd667e82e20c9eca901f56..5e591ef5e392c152fa35165d06368f0f86b8dc20 100644
--- a/ios/chrome/browser/passwords/passwords_ui_delegate_impl.mm
+++ b/ios/chrome/browser/passwords/passwords_ui_delegate_impl.mm
@@ -7,6 +7,10 @@
#import "ios/chrome/browser/passwords/password_generation_prompt_view.h"
#import "ios/chrome/browser/passwords/password_generation_prompt_view_controller.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
@implementation PasswordsUiDelegateImpl
#pragma mark -
@@ -31,15 +35,15 @@
}
PasswordGenerationPromptDialog* contentView =
- [[[PasswordGenerationPromptDialog alloc]
+ [[PasswordGenerationPromptDialog alloc]
initWithDelegate:delegate
- viewController:topViewController] autorelease];
+ viewController:topViewController];
UIViewController* viewController =
- [[[PasswordGenerationPromptViewController alloc]
+ [[PasswordGenerationPromptViewController alloc]
initWithPassword:password
contentView:contentView
- viewController:topViewController] autorelease];
+ viewController:topViewController];
[topViewController presentViewController:viewController
animated:YES
« no previous file with comments | « ios/chrome/browser/passwords/password_generation_prompt_view_controller.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698