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

Side by Side Diff: ios/chrome/browser/ui/bookmarks/bookmark_controller_factory.mm

Issue 2741413005: [ObjC ARC] Converts ios/chrome/browser/ui/bookmarks:bookmarks_arc to ARC. (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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import "ios/chrome/browser/ui/bookmarks/bookmark_controller_factory.h" 5 #import "ios/chrome/browser/ui/bookmarks/bookmark_controller_factory.h"
6 6
7 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" 7 #include "ios/chrome/browser/browser_state/chrome_browser_state.h"
8 #import "ios/chrome/browser/ui/bookmarks/bookmark_home_handset_view_controller.h " 8 #import "ios/chrome/browser/ui/bookmarks/bookmark_home_handset_view_controller.h "
9 #import "ios/chrome/browser/ui/bookmarks/bookmark_home_tablet_ntp_controller.h" 9 #import "ios/chrome/browser/ui/bookmarks/bookmark_home_tablet_ntp_controller.h"
10 10
11 #if !defined(__has_feature) || !__has_feature(objc_arc)
12 #error "This file requires ARC support."
13 #endif
14
11 @implementation BookmarkControllerFactory 15 @implementation BookmarkControllerFactory
12 16
13 - (BookmarkHomeViewController*) 17 - (BookmarkHomeViewController*)
14 bookmarkControllerWithBrowserState:(ios::ChromeBrowserState*)browserState 18 bookmarkControllerWithBrowserState:(ios::ChromeBrowserState*)browserState
15 loader:(id<UrlLoader>)loader { 19 loader:(id<UrlLoader>)loader {
16 return [[[BookmarkHomeHandsetViewController alloc] 20 return
17 initWithLoader:loader 21 [[BookmarkHomeHandsetViewController alloc] initWithLoader:loader
18 browserState:browserState] autorelease]; 22 browserState:browserState];
19 } 23 }
20 24
21 - (id<NewTabPagePanelProtocol>) 25 - (id<NewTabPagePanelProtocol>)
22 bookmarkPanelControllerForBrowserState:(ios::ChromeBrowserState*)browserState 26 bookmarkPanelControllerForBrowserState:(ios::ChromeBrowserState*)browserState
23 loader:(id<UrlLoader>)loader 27 loader:(id<UrlLoader>)loader
24 colorCache:(NSMutableDictionary*)cache { 28 colorCache:(NSMutableDictionary*)cache {
25 return [[[BookmarkHomeTabletNTPController alloc] initWithLoader:loader 29 return [[BookmarkHomeTabletNTPController alloc] initWithLoader:loader
26 browserState:browserState] 30 browserState:browserState];
27 autorelease];
28 } 31 }
29 32
30 @end 33 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698