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

Side by Side Diff: ios/public/provider/chrome/browser/native_app_launcher/fake_native_app_whitelist_manager.mm

Issue 2664993003: Converts ios/chrome/browser/native_app_launcher:native_app_launcher_internal to ARC. (Closed)
Patch Set: s/newNativeAppForURL/nativeAppForURL Created 3 years, 10 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/public/provider/chrome/browser/native_app_launcher/fake_native_app_ whitelist_manager.h" 5 #import "ios/public/provider/chrome/browser/native_app_launcher/fake_native_app_ whitelist_manager.h"
6 6
7 #include "base/mac/scoped_nsobject.h" 7 #include "base/mac/scoped_nsobject.h"
8 #include "url/gurl.h" 8 #include "url/gurl.h"
9 9
10 #if !defined(__has_feature) || !__has_feature(objc_arc) 10 #if !defined(__has_feature) || !__has_feature(objc_arc)
11 #error "This file requires ARC support." 11 #error "This file requires ARC support."
12 #endif 12 #endif
13 13
14 @implementation FakeNativeAppWhitelistManager 14 @implementation FakeNativeAppWhitelistManager
15 15
16 @synthesize metadata = _metadata; 16 @synthesize metadata = _metadata;
17 @synthesize appWhitelist = _appWhitelist; 17 @synthesize appWhitelist = _appWhitelist;
18 @synthesize appScheme = _appScheme; 18 @synthesize appScheme = _appScheme;
19 19
20 - (void)setAppList:(NSArray*)appList 20 - (void)setAppList:(NSArray*)appList
21 tldList:(NSArray*)tldList 21 tldList:(NSArray*)tldList
22 acceptStoreIDs:(NSArray*)storeIDs { 22 acceptStoreIDs:(NSArray*)storeIDs {
23 _appWhitelist = appList; 23 _appWhitelist = appList;
24 } 24 }
25 25
26 - (id<NativeAppMetadata>)newNativeAppForURL:(const GURL&)url { 26 - (id<NativeAppMetadata>)nativeAppForURL:(const GURL&)url {
stkhapugin 2017/01/31 14:17:55 Thank you for doing this.
27 return _metadata; 27 return _metadata;
28 } 28 }
29 29
30 - (NSArray*)filteredAppsUsingBlock:(NativeAppFilter)condition { 30 - (NSArray*)filteredAppsUsingBlock:(NativeAppFilter)condition {
31 return _appWhitelist; 31 return _appWhitelist;
32 } 32 }
33 33
34 - (NSURL*)schemeForAppId:(NSString*)appId { 34 - (NSURL*)schemeForAppId:(NSString*)appId {
35 return [NSURL URLWithString:[NSString stringWithFormat:@"%@://", _appScheme]]; 35 return [NSURL URLWithString:[NSString stringWithFormat:@"%@://", _appScheme]];
36 } 36 }
37 37
38 - (void)checkInstalledApps { 38 - (void)checkInstalledApps {
39 return; 39 return;
40 } 40 }
41 41
42 @end 42 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698