| 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 | 10 |
| 11 namespace { | 11 namespace { |
| 12 NSString* const kChromeAppGroupIdentifier = @"group.com.google.chrome"; | 12 NSString* const kChromeAppGroupIdentifier = |
| 13 @"group." IOS_BUNDLE_ID_PREFIX ".chrome"; |
| 13 } | 14 } |
| 14 | 15 |
| 15 namespace app_group { | 16 namespace app_group { |
| 16 | 17 |
| 17 const char kChromeAppGroupXCallbackCommand[] = "app-group-command"; | 18 const char kChromeAppGroupXCallbackCommand[] = "app-group-command"; |
| 18 | 19 |
| 19 const char kChromeAppGroupCommandPreference[] = | 20 const char kChromeAppGroupCommandPreference[] = |
| 20 "GroupApp.ChromeAppGroupCommand"; | 21 "GroupApp.ChromeAppGroupCommand"; |
| 21 | 22 |
| 22 const char kChromeAppGroupCommandTimePreference[] = "CommandTime"; | 23 const char kChromeAppGroupCommandTimePreference[] = "CommandTime"; |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 NSURL* ShareExtensionItemsFolder() { | 80 NSURL* ShareExtensionItemsFolder() { |
| 80 NSURL* groupURL = [[NSFileManager defaultManager] | 81 NSURL* groupURL = [[NSFileManager defaultManager] |
| 81 containerURLForSecurityApplicationGroupIdentifier:ApplicationGroup()]; | 82 containerURLForSecurityApplicationGroupIdentifier:ApplicationGroup()]; |
| 82 NSURL* readingListURL = | 83 NSURL* readingListURL = |
| 83 [groupURL URLByAppendingPathComponent:@"ShareExtensionItems" | 84 [groupURL URLByAppendingPathComponent:@"ShareExtensionItems" |
| 84 isDirectory:YES]; | 85 isDirectory:YES]; |
| 85 return readingListURL; | 86 return readingListURL; |
| 86 } | 87 } |
| 87 | 88 |
| 88 } // namespace app_group | 89 } // namespace app_group |
| OLD | NEW |