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

Side by Side Diff: chrome/common/mac/app_mode_common.mm

Issue 64803005: File association for app shims. (Mac) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Missed a comma. Created 6 years, 7 months 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/mac/app_mode_common.h ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/common/mac/app_mode_common.h" 5 #include "chrome/common/mac/app_mode_common.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 8
9 namespace app_mode { 9 namespace app_mode {
10 10
11 const char kAppShimSocketShortName[] = "Socket"; 11 const char kAppShimSocketShortName[] = "Socket";
12 const char kAppShimSocketSymlinkName[] = "App Shim Socket"; 12 const char kAppShimSocketSymlinkName[] = "App Shim Socket";
13 13
14 const char kAppListModeId[] = "app_list"; 14 const char kAppListModeId[] = "app_list";
15 15
16 const char kLaunchedByChromeProcessId[] = "launched-by-chrome-process-id"; 16 const char kLaunchedByChromeProcessId[] = "launched-by-chrome-process-id";
17 17
18 const char kAppShimError[] = "app-shim-error"; 18 const char kAppShimError[] = "app-shim-error";
19 19
20 NSString* const kCFBundleDocumentTypesKey = @"CFBundleDocumentTypes";
21 NSString* const kCFBundleTypeExtensionsKey = @"CFBundleTypeExtensions";
22 NSString* const kCFBundleTypeIconFileKey = @"CFBundleTypeIconFile";
23 NSString* const kCFBundleTypeNameKey = @"CFBundleTypeName";
24 NSString* const kCFBundleTypeMIMETypesKey = @"CFBundleTypeMIMETypes";
25 NSString* const kCFBundleTypeRoleKey = @"CFBundleTypeRole";
26 NSString* const kBundleTypeRoleViewer = @"Viewer";
27
20 NSString* const kCFBundleDisplayNameKey = @"CFBundleDisplayName"; 28 NSString* const kCFBundleDisplayNameKey = @"CFBundleDisplayName";
21 NSString* const kLSHasLocalizedDisplayNameKey = @"LSHasLocalizedDisplayName"; 29 NSString* const kLSHasLocalizedDisplayNameKey = @"LSHasLocalizedDisplayName";
22 NSString* const kBrowserBundleIDKey = @"CrBundleIdentifier"; 30 NSString* const kBrowserBundleIDKey = @"CrBundleIdentifier";
23 NSString* const kCrAppModeShortcutIDKey = @"CrAppModeShortcutID"; 31 NSString* const kCrAppModeShortcutIDKey = @"CrAppModeShortcutID";
24 NSString* const kCrAppModeShortcutNameKey = @"CrAppModeShortcutName"; 32 NSString* const kCrAppModeShortcutNameKey = @"CrAppModeShortcutName";
25 NSString* const kCrAppModeShortcutURLKey = @"CrAppModeShortcutURL"; 33 NSString* const kCrAppModeShortcutURLKey = @"CrAppModeShortcutURL";
26 NSString* const kCrAppModeUserDataDirKey = @"CrAppModeUserDataDir"; 34 NSString* const kCrAppModeUserDataDirKey = @"CrAppModeUserDataDir";
27 NSString* const kCrAppModeProfileDirKey = @"CrAppModeProfileDir"; 35 NSString* const kCrAppModeProfileDirKey = @"CrAppModeProfileDir";
28 NSString* const kCrAppModeProfileNameKey = @"CrAppModeProfileName"; 36 NSString* const kCrAppModeProfileNameKey = @"CrAppModeProfileName";
29 37
(...skipping 17 matching lines...) Expand all
47 55
48 void VerifySocketPermissions(const base::FilePath& socket_path) { 56 void VerifySocketPermissions(const base::FilePath& socket_path) {
49 CHECK(base::PathIsWritable(socket_path)); 57 CHECK(base::PathIsWritable(socket_path));
50 base::FilePath socket_dir = socket_path.DirName(); 58 base::FilePath socket_dir = socket_path.DirName();
51 int socket_dir_mode = 0; 59 int socket_dir_mode = 0;
52 CHECK(base::GetPosixFilePermissions(socket_dir, &socket_dir_mode)); 60 CHECK(base::GetPosixFilePermissions(socket_dir, &socket_dir_mode));
53 CHECK_EQ(0700, socket_dir_mode); 61 CHECK_EQ(0700, socket_dir_mode);
54 } 62 }
55 63
56 } // namespace app_mode 64 } // namespace app_mode
OLDNEW
« no previous file with comments | « chrome/common/mac/app_mode_common.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698