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

Unified Diff: base/mac/authorization_util.h

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/base.gypi ('k') | base/mac/authorization_util.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/mac/authorization_util.h
diff --git a/chrome/browser/mac/authorization_util.h b/base/mac/authorization_util.h
similarity index 91%
rename from chrome/browser/mac/authorization_util.h
rename to base/mac/authorization_util.h
index c25f0cb13d9146dcf2f2f04ad7f13d1e88ffe5d5..c6a63c05173f030aeac16ab36b5112853f912d24 100644
--- a/chrome/browser/mac/authorization_util.h
+++ b/base/mac/authorization_util.h
@@ -1,9 +1,9 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_MAC_AUTHORIZATION_UTIL_H_
-#define CHROME_BROWSER_MAC_AUTHORIZATION_UTIL_H_
+#ifndef BASE_MAC_AUTHORIZATION_UTIL_H_
+#define BASE_MAC_AUTHORIZATION_UTIL_H_
#pragma once
// AuthorizationExecuteWithPrivileges fork()s and exec()s the tool, but it
@@ -29,7 +29,8 @@
#include <stdio.h>
#include <sys/types.h>
-namespace authorization_util {
+namespace base {
+namespace mac {
// Obtains an AuthorizationRef that can be used to run commands as root. If
// necessary, prompts the user for authentication. If the user is prompted,
@@ -62,6 +63,7 @@ OSStatus ExecuteWithPrivilegesAndWait(AuthorizationRef authorization,
FILE** pipe,
int* exit_status);
-} // namespace authorization_util
+} // namespace mac
+} // namespace base
-#endif // CHROME_BROWSER_MAC_AUTHORIZATION_UTIL_H_
+#endif // BASE_MAC_AUTHORIZATION_UTIL_H_
« no previous file with comments | « base/base.gypi ('k') | base/mac/authorization_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698