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

Unified Diff: chrome/browser/ui/cocoa/keystone_glue.mm

Issue 6046009: Move base/mac_util.h to base/mac and use the base::mac namespace.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 12 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/keystone_glue.mm
===================================================================
--- chrome/browser/ui/cocoa/keystone_glue.mm (revision 70358)
+++ chrome/browser/ui/cocoa/keystone_glue.mm (working copy)
@@ -12,7 +12,7 @@
#include "app/l10n_util.h"
#import "app/l10n_util_mac.h"
#include "base/logging.h"
-#include "base/mac_util.h"
+#include "base/mac/mac_util.h"
#include "base/mac/scoped_nsautorelease_pool.h"
#include "base/sys_string_conversions.h"
#include "base/ref_counted.h"
@@ -438,9 +438,9 @@
return NO;
// Load the KeystoneRegistration framework bundle if present. It lives
- // inside the framework, so use mac_util::MainAppBundle();
+ // inside the framework, so use base::mac::MainAppBundle();
NSString* ksrPath =
- [[mac_util::MainAppBundle() privateFrameworksPath]
+ [[base::mac::MainAppBundle() privateFrameworksPath]
stringByAppendingPathComponent:@"KeystoneRegistration.framework"];
NSBundle* ksrBundle = [NSBundle bundleWithPath:ksrPath];
[ksrBundle load];
@@ -722,7 +722,7 @@
// to files and directories.
NSFileManager* fileManager = [NSFileManager defaultManager];
NSString* executablePath = [[NSBundle mainBundle] executablePath];
- NSString* frameworkPath = [mac_util::MainAppBundle() bundlePath];
+ NSString* frameworkPath = [base::mac::MainAppBundle() bundlePath];
return ![fileManager isWritableFileAtPath:appPath_] ||
![fileManager isWritableFileAtPath:executablePath] ||
![fileManager isWritableFileAtPath:frameworkPath];
@@ -809,7 +809,7 @@
// However, preflight operation (and promotion) should only be asynchronous
// if the synchronous parameter is NO.
NSString* preflightPath =
- [mac_util::MainAppBundle() pathForResource:@"keystone_promote_preflight"
+ [base::mac::MainAppBundle() pathForResource:@"keystone_promote_preflight"
ofType:@"sh"];
const char* preflightPathC = [preflightPath fileSystemRepresentation];
const char* userBrandFile = NULL;
@@ -895,7 +895,7 @@
SEL selector = @selector(changePermissionsForPromotionWithTool:);
NSString* toolPath =
- [mac_util::MainAppBundle() pathForResource:@"keystone_promote_postflight"
+ [base::mac::MainAppBundle() pathForResource:@"keystone_promote_postflight"
ofType:@"sh"];
PerformBridge::PostPerform(self, selector, toolPath);

Powered by Google App Engine
This is Rietveld 408576698