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

Side by Side Diff: ios/public/provider/chrome/browser/spotlight/test_spotlight_provider.mm

Issue 2654433010: [ObjC ARC] Converts ios/public/provider/chrome/browser/spotlight:test_support to ARC. (Closed)
Patch Set: 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
« no previous file with comments | « ios/public/provider/chrome/browser/spotlight/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/spotlight/test_spotlight_provider.h" 5 #import "ios/public/provider/chrome/browser/spotlight/test_spotlight_provider.h"
6 6
7 #if !defined(__has_feature) || !__has_feature(objc_arc)
8 #error "This file requires ARC support."
9 #endif
10
7 bool TestSpotlightProvider::IsSpotlightEnabled() { 11 bool TestSpotlightProvider::IsSpotlightEnabled() {
8 return true; 12 return true;
9 } 13 }
10 14
11 NSString* TestSpotlightProvider::GetBookmarkDomain() { 15 NSString* TestSpotlightProvider::GetBookmarkDomain() {
12 return @"org.chromium.bookmarks"; 16 return @"org.chromium.bookmarks";
13 } 17 }
14 18
15 NSString* TestSpotlightProvider::GetTopSitesDomain() { 19 NSString* TestSpotlightProvider::GetTopSitesDomain() {
16 return @"org.chromium.topsites"; 20 return @"org.chromium.topsites";
17 } 21 }
18 22
19 NSString* TestSpotlightProvider::GetActionsDomain() { 23 NSString* TestSpotlightProvider::GetActionsDomain() {
20 return @"org.chromium.actions"; 24 return @"org.chromium.actions";
21 } 25 }
22 26
23 NSString* TestSpotlightProvider::GetCustomAttributeItemID() { 27 NSString* TestSpotlightProvider::GetCustomAttributeItemID() {
24 return @"OrgChromiumItemID"; 28 return @"OrgChromiumItemID";
25 } 29 }
26 30
27 NSArray* TestSpotlightProvider::GetAdditionalKeywords() { 31 NSArray* TestSpotlightProvider::GetAdditionalKeywords() {
28 return @[ @"chromium" ]; 32 return @[ @"chromium" ];
29 } 33 }
OLDNEW
« no previous file with comments | « ios/public/provider/chrome/browser/spotlight/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698