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

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

Issue 356893002: Add UMA for --app-shim-error. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 6 years, 5 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
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
(...skipping 10 matching lines...) Expand all
21 21
22 NSString* const kCFBundleDocumentTypesKey = @"CFBundleDocumentTypes"; 22 NSString* const kCFBundleDocumentTypesKey = @"CFBundleDocumentTypes";
23 NSString* const kCFBundleTypeExtensionsKey = @"CFBundleTypeExtensions"; 23 NSString* const kCFBundleTypeExtensionsKey = @"CFBundleTypeExtensions";
24 NSString* const kCFBundleTypeIconFileKey = @"CFBundleTypeIconFile"; 24 NSString* const kCFBundleTypeIconFileKey = @"CFBundleTypeIconFile";
25 NSString* const kCFBundleTypeNameKey = @"CFBundleTypeName"; 25 NSString* const kCFBundleTypeNameKey = @"CFBundleTypeName";
26 NSString* const kCFBundleTypeMIMETypesKey = @"CFBundleTypeMIMETypes"; 26 NSString* const kCFBundleTypeMIMETypesKey = @"CFBundleTypeMIMETypes";
27 NSString* const kCFBundleTypeRoleKey = @"CFBundleTypeRole"; 27 NSString* const kCFBundleTypeRoleKey = @"CFBundleTypeRole";
28 NSString* const kBundleTypeRoleViewer = @"Viewer"; 28 NSString* const kBundleTypeRoleViewer = @"Viewer";
29 29
30 NSString* const kCFBundleDisplayNameKey = @"CFBundleDisplayName"; 30 NSString* const kCFBundleDisplayNameKey = @"CFBundleDisplayName";
31 NSString* const kCFBundleShortVersionStringKey = @"CFBundleShortVersionString";
31 NSString* const kLSHasLocalizedDisplayNameKey = @"LSHasLocalizedDisplayName"; 32 NSString* const kLSHasLocalizedDisplayNameKey = @"LSHasLocalizedDisplayName";
32 NSString* const kBrowserBundleIDKey = @"CrBundleIdentifier"; 33 NSString* const kBrowserBundleIDKey = @"CrBundleIdentifier";
33 NSString* const kCrAppModeShortcutIDKey = @"CrAppModeShortcutID"; 34 NSString* const kCrAppModeShortcutIDKey = @"CrAppModeShortcutID";
34 NSString* const kCrAppModeShortcutNameKey = @"CrAppModeShortcutName"; 35 NSString* const kCrAppModeShortcutNameKey = @"CrAppModeShortcutName";
35 NSString* const kCrAppModeShortcutURLKey = @"CrAppModeShortcutURL"; 36 NSString* const kCrAppModeShortcutURLKey = @"CrAppModeShortcutURL";
36 NSString* const kCrAppModeUserDataDirKey = @"CrAppModeUserDataDir"; 37 NSString* const kCrAppModeUserDataDirKey = @"CrAppModeUserDataDir";
37 NSString* const kCrAppModeProfileDirKey = @"CrAppModeProfileDir"; 38 NSString* const kCrAppModeProfileDirKey = @"CrAppModeProfileDir";
38 NSString* const kCrAppModeProfileNameKey = @"CrAppModeProfileName"; 39 NSString* const kCrAppModeProfileNameKey = @"CrAppModeProfileName";
39 40
40 NSString* const kLastRunAppBundlePathPrefsKey = @"LastRunAppBundlePath"; 41 NSString* const kLastRunAppBundlePathPrefsKey = @"LastRunAppBundlePath";
(...skipping 16 matching lines...) Expand all
57 58
58 void VerifySocketPermissions(const base::FilePath& socket_path) { 59 void VerifySocketPermissions(const base::FilePath& socket_path) {
59 CHECK(base::PathIsWritable(socket_path)); 60 CHECK(base::PathIsWritable(socket_path));
60 base::FilePath socket_dir = socket_path.DirName(); 61 base::FilePath socket_dir = socket_path.DirName();
61 int socket_dir_mode = 0; 62 int socket_dir_mode = 0;
62 CHECK(base::GetPosixFilePermissions(socket_dir, &socket_dir_mode)); 63 CHECK(base::GetPosixFilePermissions(socket_dir, &socket_dir_mode));
63 CHECK_EQ(0700, socket_dir_mode); 64 CHECK_EQ(0700, socket_dir_mode);
64 } 65 }
65 66
66 } // namespace app_mode 67 } // namespace app_mode
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698