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

Side by Side Diff: chrome/installer/gcapi_mac/gcapi.mm

Issue 10836274: gcapi/mac: Put master prefs in the right place (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | « no previous file | 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.
Mark Mentovai 2012/08/15 22:20:06 Fix the change description. Mike Graboski is not r
Nico 2012/08/15 22:21:44 Done.
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/installer/gcapi_mac/gcapi.h" 5 #include "chrome/installer/gcapi_mac/gcapi.h"
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 #include <grp.h> 8 #include <grp.h>
9 #include <pwd.h> 9 #include <pwd.h>
10 #include <sys/stat.h> 10 #include <sys/stat.h>
11 #include <sys/types.h> 11 #include <sys/types.h>
(...skipping 12 matching lines...) Expand all
24 @"/Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/" 24 @"/Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/"
25 "Contents/MacOS/ksadmin"; 25 "Contents/MacOS/ksadmin";
26 26
27 NSString* const kUserKsadminPath = 27 NSString* const kUserKsadminPath =
28 @"~~/Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/" 28 @"~~/Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/"
29 "Contents/MacOS/ksadmin"; 29 "Contents/MacOS/ksadmin";
30 30
31 NSString* const kSystemMasterPrefsPath = 31 NSString* const kSystemMasterPrefsPath =
32 @"/Library/Google/Google Chrome Master Preferences"; 32 @"/Library/Google/Google Chrome Master Preferences";
33 NSString* const kUserMasterPrefsPath = 33 NSString* const kUserMasterPrefsPath =
34 @"~~/Library/Application Support/Google/Google Chrome Master Preferences"; 34 @"~~/Library/Application Support/Google/Chrome/"
35 "Google Chrome Master Preferences";
35 36
36 NSString* const kChannelKey = @"KSChannelID"; 37 NSString* const kChannelKey = @"KSChannelID";
37 NSString* const kVersionKey = @"KSVersion"; 38 NSString* const kVersionKey = @"KSVersion";
38 39
39 // Condensed from chromium's base/mac/mac_util.mm. 40 // Condensed from chromium's base/mac/mac_util.mm.
40 bool IsOSXVersionSupported() { 41 bool IsOSXVersionSupported() {
41 // On 10.6, Gestalt() was observed to be able to spawn threads (see 42 // On 10.6, Gestalt() was observed to be able to spawn threads (see
42 // http://crbug.com/53200). Don't call Gestalt(). 43 // http://crbug.com/53200). Don't call Gestalt().
43 struct utsname uname_info; 44 struct utsname uname_info;
44 if (uname(&uname_info) != 0) 45 if (uname(&uname_info) != 0)
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 return 1; 362 return 1;
362 } 363 }
363 364
364 int LaunchGoogleChrome() { 365 int LaunchGoogleChrome() {
365 @autoreleasepool { 366 @autoreleasepool {
366 // NSWorkspace launches processes as the current console owner, 367 // NSWorkspace launches processes as the current console owner,
367 // even when running with euid of 0. 368 // even when running with euid of 0.
368 return [[NSWorkspace sharedWorkspace] launchApplication:kChromeInstallPath]; 369 return [[NSWorkspace sharedWorkspace] launchApplication:kChromeInstallPath];
369 } 370 }
370 } 371 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698