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

Unified Diff: ios/chrome/browser/ui/browser_view_controller_dependency_factory.mm

Issue 2798903003: [ObjC ARC] Converts ios/chrome/browser/ui:ui_internal to ARC. (Closed)
Patch Set: missing weaks from another patch Created 3 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
« no previous file with comments | « ios/chrome/browser/ui/browser_view_controller_dependency_factory.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/ui/browser_view_controller_dependency_factory.mm
diff --git a/ios/chrome/browser/ui/browser_view_controller_dependency_factory.mm b/ios/chrome/browser/ui/browser_view_controller_dependency_factory.mm
index 6e4ff2014e0709e0aa0528391da00be7e514c192..37081240a210b3d0bc07c86da816a11bef8890dc 100644
--- a/ios/chrome/browser/ui/browser_view_controller_dependency_factory.mm
+++ b/ios/chrome/browser/ui/browser_view_controller_dependency_factory.mm
@@ -26,10 +26,16 @@
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/l10n/l10n_util_mac.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
NSString* const kBrowserViewControllerSnackbarCategory =
@"BrowserViewControllerSnackbarCategory";
-@implementation BrowserViewControllerDependencyFactory
+@implementation BrowserViewControllerDependencyFactory {
+ ios::ChromeBrowserState* browserState_;
+}
- (id)initWithBrowserState:(ios::ChromeBrowserState*)browserState {
self = [super init];
@@ -98,10 +104,10 @@ newWebToolbarControllerWithDelegate:(id<WebToolbarDelegate>)delegate
message:(NSString*)message
viewController:
(UIViewController*)viewController {
- AlertCoordinator* alertCoordinator = [[[AlertCoordinator alloc]
- initWithBaseViewController:viewController
- title:title
- message:message] autorelease];
+ AlertCoordinator* alertCoordinator =
+ [[AlertCoordinator alloc] initWithBaseViewController:viewController
+ title:title
+ message:message];
[alertCoordinator addItemWithTitle:l10n_util::GetNSString(IDS_OK)
action:nil
style:UIAlertActionStyleDefault];
« no previous file with comments | « ios/chrome/browser/ui/browser_view_controller_dependency_factory.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698