| Index: ios/chrome/app/spotlight/actions_spotlight_manager.mm
|
| diff --git a/ios/chrome/app/spotlight/actions_spotlight_manager.mm b/ios/chrome/app/spotlight/actions_spotlight_manager.mm
|
| index e26959dbe8bb5c7f5dc0aedfbddfbdb3c7b959ea..5702538788d04cefe9142ea63118ba7b3413931d 100644
|
| --- a/ios/chrome/app/spotlight/actions_spotlight_manager.mm
|
| +++ b/ios/chrome/app/spotlight/actions_spotlight_manager.mm
|
| @@ -160,25 +160,18 @@ BOOL SetStartupParametersForSpotlightAction(
|
| NSString* incognitoAction = base::SysUTF8ToNSString(
|
| spotlight::kSpotlightActionNewIncognitoTab);
|
|
|
| - NSMutableArray* spotlightItems = [NSMutableArray
|
| - arrayWithObjects:[strongSelf getItemForAction:voiceSearchAction
|
| - title:voiceSearchTitle],
|
| - [strongSelf getItemForAction:newTabAction
|
| - title:newTabTitle],
|
| - [strongSelf getItemForAction:incognitoAction
|
| - title:incognitoTitle],
|
| - nil];
|
| -
|
| - if (experimental_flags::IsQRCodeReaderEnabled()) {
|
| - NSString* qrScannerTitle = l10n_util::GetNSString(
|
| - IDS_IOS_APPLICATION_SHORTCUT_QR_SCANNER_TITLE);
|
| - NSString* qrScannerAction =
|
| - base::SysUTF8ToNSString(spotlight::kSpotlightActionQRScanner);
|
| -
|
| - [spotlightItems
|
| - addObject:[strongSelf getItemForAction:qrScannerAction
|
| - title:qrScannerTitle]];
|
| - }
|
| + NSString* qrScannerTitle = l10n_util::GetNSString(
|
| + IDS_IOS_APPLICATION_SHORTCUT_QR_SCANNER_TITLE);
|
| + NSString* qrScannerAction =
|
| + base::SysUTF8ToNSString(spotlight::kSpotlightActionQRScanner);
|
| +
|
| + NSArray* spotlightItems = @[
|
| + [strongSelf getItemForAction:voiceSearchAction
|
| + title:voiceSearchTitle],
|
| + [strongSelf getItemForAction:newTabAction title:newTabTitle],
|
| + [strongSelf getItemForAction:incognitoAction title:incognitoTitle],
|
| + [strongSelf getItemForAction:qrScannerAction title:qrScannerTitle],
|
| + ];
|
|
|
| [[CSSearchableIndex defaultSearchableIndex]
|
| indexSearchableItems:spotlightItems
|
|
|