OLD | NEW |
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 } |
OLD | NEW |