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

Unified Diff: base/mac/scoped_authorizationref.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/mac/authorization_util.mm ('k') | chrome/browser/mac/authorization_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/mac/scoped_authorizationref.h
diff --git a/chrome/browser/mac/scoped_authorizationref.h b/base/mac/scoped_authorizationref.h
similarity index 87%
rename from chrome/browser/mac/scoped_authorizationref.h
rename to base/mac/scoped_authorizationref.h
index fbe0b9d823bccb2df7606be78322192c13b82c05..28ebce9f1629a91426a03963304ec93b60059aa0 100644
--- a/chrome/browser/mac/scoped_authorizationref.h
+++ b/base/mac/scoped_authorizationref.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_SCOPED_AUTHORIZATIONREF_H_
-#define CHROME_BROWSER_MAC_SCOPED_AUTHORIZATIONREF_H_
+#ifndef BASE_MAC_SCOPED_AUTHORIZATIONREF_H_
+#define BASE_MAC_SCOPED_AUTHORIZATIONREF_H_
#pragma once
#include <Security/Authorization.h>
@@ -14,6 +14,9 @@
// ScopedAuthorizationRef maintains ownership of an AuthorizationRef. It is
// patterned after the scoped_ptr interface.
+namespace base {
+namespace mac {
+
class ScopedAuthorizationRef {
public:
explicit ScopedAuthorizationRef(AuthorizationRef authorization = NULL)
@@ -77,4 +80,7 @@ class ScopedAuthorizationRef {
DISALLOW_COPY_AND_ASSIGN(ScopedAuthorizationRef);
};
-#endif // CHROME_BROWSER_MAC_SCOPED_AUTHORIZATIONREF_H_
+} // namespace mac
+} // namespace base
+
+#endif // BASE_MAC_SCOPED_AUTHORIZATIONREF_H_
« no previous file with comments | « base/mac/authorization_util.mm ('k') | chrome/browser/mac/authorization_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698