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

Unified Diff: base/mac/foundation_util.mm

Issue 10690133: Get mac_logging and foundation_util working on iOS (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 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: base/mac/foundation_util.mm
diff --git a/base/mac/foundation_util.mm b/base/mac/foundation_util.mm
index 13c6ee807802f78d26bf4a7f0e07d410d9ada1e0..8ef5ca3b528f93dc5b5a6ba897ef3d436825b38e 100644
--- a/base/mac/foundation_util.mm
+++ b/base/mac/foundation_util.mm
@@ -13,10 +13,12 @@
#include "base/mac/mac_logging.h"
#include "base/sys_string_conversions.h"
+#if !defined(OS_IOS)
extern "C" {
CFTypeID SecACLGetTypeID();
CFTypeID SecTrustedApplicationGetTypeID();
} // extern "C"
+#endif
namespace base {
namespace mac {
@@ -29,6 +31,10 @@ static bool UncachedAmIBundled() {
if (g_override_am_i_bundled)
return g_override_am_i_bundled_value;
+#if defined(OS_IOS)
+ // All apps are bundled on iOS
Mark Mentovai 2012/07/11 12:42:51 Then should this happen before the g_override_am_i
stuartmorgan 2012/07/11 13:18:42 Good point. No, nothing does (there's only one cal
+ return true;
+#else
ProcessSerialNumber psn = {0, kCurrentProcess};
FSRef fsref;
@@ -47,6 +53,7 @@ static bool UncachedAmIBundled() {
}
return info.nodeFlags & kFSNodeIsDirectoryMask;
+#endif
}
bool AmIBundled() {
@@ -317,8 +324,10 @@ CF_CAST_DEFN(CFNumber);
CF_CAST_DEFN(CFSet);
CF_CAST_DEFN(CFString);
+#if !defined(OS_IOS)
CF_CAST_DEFN(SecACL);
CF_CAST_DEFN(SecTrustedApplication);
+#endif
#undef CF_CAST_DEFN
« no previous file with comments | « base/mac/foundation_util.h ('k') | base/mac/mac_logging.h » ('j') | base/mac/mac_logging.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698