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

Side by Side Diff: ios/chrome/common/app_group/app_group_constants.mm

Issue 2473103005: Application group identifier should respect ios_app_bundle_id_prefix. (Closed)
Patch Set: Created 4 years, 1 month 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/chrome/common/app_group/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 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
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
OLDNEW
« no previous file with comments | « ios/chrome/common/app_group/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698