OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "ios/chrome/common/app_group/app_group_constants.h" | 5 #include "ios/chrome/common/app_group/app_group_constants.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/strings/sys_string_conversions.h" | 8 #include "base/strings/sys_string_conversions.h" |
9 #include "components/version_info/version_info.h" | 9 #include "components/version_info/version_info.h" |
10 #include "ios/chrome/common/ios_app_bundle_id_prefix.h" | 10 #include "ios/chrome/common/ios_app_bundle_id_prefix.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 const char kChromeAppGroupCommandAppPreference[] = "SourceApp"; | 25 const char kChromeAppGroupCommandAppPreference[] = "SourceApp"; |
26 | 26 |
27 const char kChromeAppGroupCommandCommandPreference[] = "Command"; | 27 const char kChromeAppGroupCommandCommandPreference[] = "Command"; |
28 | 28 |
29 const char kChromeAppGroupCommandParameterPreference[] = "Parameter"; | 29 const char kChromeAppGroupCommandParameterPreference[] = "Parameter"; |
30 | 30 |
31 const char kChromeAppGroupOpenURLCommand[] = "openurl"; | 31 const char kChromeAppGroupOpenURLCommand[] = "openurl"; |
32 const char kChromeAppGroupVoiceSearchCommand[] = "voicesearch"; | 32 const char kChromeAppGroupVoiceSearchCommand[] = "voicesearch"; |
33 const char kChromeAppGroupNewTabCommand[] = "newtab"; | 33 const char kChromeAppGroupNewTabCommand[] = "newtab"; |
34 const char kChromeAppGroupFocusOmniboxCommand[] = "focusomnibox"; | 34 const char kChromeAppGroupFocusOmniboxCommand[] = "focusomnibox"; |
| 35 const char kChromeAppGroupIncognitoSearchCommand[] = "incognitosearch"; |
| 36 const char kChromeAppGroupQRScannerCommand[] = "qrscanner"; |
35 | 37 |
36 const char kChromeAppClientID[] = "ClientID"; | 38 const char kChromeAppClientID[] = "ClientID"; |
37 const char kUserMetricsEnabledDate[] = "UserMetricsEnabledDate"; | 39 const char kUserMetricsEnabledDate[] = "UserMetricsEnabledDate"; |
38 const char kInstallDate[] = "InstallDate"; | 40 const char kInstallDate[] = "InstallDate"; |
39 const char kBrandCode[] = "BrandCode"; | 41 const char kBrandCode[] = "BrandCode"; |
40 | 42 |
41 NSString* const kShareItemSource = @"Source"; | 43 NSString* const kShareItemSource = @"Source"; |
42 NSString* const kShareItemURL = @"URL"; | 44 NSString* const kShareItemURL = @"URL"; |
43 NSString* const kShareItemTitle = @"Title"; | 45 NSString* const kShareItemTitle = @"Title"; |
44 NSString* const kShareItemDate = @"Date"; | 46 NSString* const kShareItemDate = @"Date"; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 containerURLForSecurityApplicationGroupIdentifier:ApplicationGroup()]; | 108 containerURLForSecurityApplicationGroupIdentifier:ApplicationGroup()]; |
107 NSURL* chromeURL = | 109 NSURL* chromeURL = |
108 [groupURL URLByAppendingPathComponent:@"Chrome" isDirectory:YES]; | 110 [groupURL URLByAppendingPathComponent:@"Chrome" isDirectory:YES]; |
109 NSURL* externalCommandsURL = | 111 NSURL* externalCommandsURL = |
110 [chromeURL URLByAppendingPathComponent:@"ExternalCommands" | 112 [chromeURL URLByAppendingPathComponent:@"ExternalCommands" |
111 isDirectory:YES]; | 113 isDirectory:YES]; |
112 return externalCommandsURL; | 114 return externalCommandsURL; |
113 } | 115 } |
114 | 116 |
115 } // namespace app_group | 117 } // namespace app_group |
OLD | NEW |