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

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

Issue 2738053008: Revert of [ObjC ARC] Converts ios/chrome/browser/ui/bookmarks:bookmarks_arc_2 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
15 @implementation BookmarkControllerFactory 11 @implementation BookmarkControllerFactory
16 12
17 - (BookmarkHomeViewController*) 13 - (BookmarkHomeViewController*)
18 bookmarkControllerWithBrowserState:(ios::ChromeBrowserState*)browserState 14 bookmarkControllerWithBrowserState:(ios::ChromeBrowserState*)browserState
19 loader:(id<UrlLoader>)loader { 15 loader:(id<UrlLoader>)loader {
20 return 16 return [[[BookmarkHomeHandsetViewController alloc]
21 [[BookmarkHomeHandsetViewController alloc] initWithLoader:loader 17 initWithLoader:loader
22 browserState:browserState]; 18 browserState:browserState] autorelease];
23 } 19 }
24 20
25 - (id<NewTabPagePanelProtocol>) 21 - (id<NewTabPagePanelProtocol>)
26 bookmarkPanelControllerForBrowserState:(ios::ChromeBrowserState*)browserState 22 bookmarkPanelControllerForBrowserState:(ios::ChromeBrowserState*)browserState
27 loader:(id<UrlLoader>)loader 23 loader:(id<UrlLoader>)loader
28 colorCache:(NSMutableDictionary*)cache { 24 colorCache:(NSMutableDictionary*)cache {
29 return [[BookmarkHomeTabletNTPController alloc] initWithLoader:loader 25 return [[[BookmarkHomeTabletNTPController alloc] initWithLoader:loader
30 browserState:browserState]; 26 browserState:browserState]
27 autorelease];
31 } 28 }
32 29
33 @end 30 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698