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

Unified Diff: base/mac/authorization_util.mm

Issue 9764013: Move authorization_util files into base/mac. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix license headers Created 8 years, 9 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
« no previous file with comments | « base/mac/authorization_util.h ('k') | base/mac/scoped_authorizationref.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/mac/authorization_util.mm
diff --git a/chrome/browser/mac/authorization_util.mm b/base/mac/authorization_util.mm
similarity index 97%
rename from chrome/browser/mac/authorization_util.mm
rename to base/mac/authorization_util.mm
index 734ee7f4412ee1c7ed10f2c7ca659b49e487c773..a9fac3efbd82b556807b59af6581f31eacf407c6 100644
--- a/chrome/browser/mac/authorization_util.mm
+++ b/base/mac/authorization_util.mm
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/mac/authorization_util.h"
+#include "base/mac/authorization_util.h"
#import <Foundation/Foundation.h>
#include <sys/wait.h>
@@ -15,11 +15,12 @@
#include "base/mac/bundle_locations.h"
#include "base/mac/mac_logging.h"
#import "base/mac/mac_util.h"
+#include "base/mac/scoped_authorizationref.h"
#include "base/string_number_conversions.h"
#include "base/string_util.h"
-#include "chrome/browser/mac/scoped_authorizationref.h"
-namespace authorization_util {
+namespace base {
+namespace mac {
AuthorizationRef AuthorizationCreateToRunAsRoot(CFStringRef prompt) {
// Create an empty AuthorizationRef.
@@ -182,4 +183,5 @@ OSStatus ExecuteWithPrivilegesAndWait(AuthorizationRef authorization,
return status;
}
-} // namespace authorization_util
+} // namespace mac
+} // namespace base
« no previous file with comments | « base/mac/authorization_util.h ('k') | base/mac/scoped_authorizationref.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698