Index: base/mac/bundle_locations.mm |
diff --git a/base/mac/bundle_locations.mm b/base/mac/bundle_locations.mm |
index 54021b85ee08c29ad26e1c3a258f9165a87eb4a4..78c0fac2e330d5566b8ea7dbada0e279b72631f2 100644 |
--- a/base/mac/bundle_locations.mm |
+++ b/base/mac/bundle_locations.mm |
@@ -47,6 +47,11 @@ FilePath FrameworkBundlePath() { |
return NSStringToFilePath([bundle bundlePath]); |
} |
+std::string GetOuterBundleIdentifier() { |
+ NSBundle* bundle = OuterBundle(); |
+ return base::SysNSStringToUTF8([bundle bundleIdentifier]); |
+} |
+ |
static void AssignOverrideBundle(NSBundle* new_bundle, |
NSBundle** override_bundle) { |
if (new_bundle != *override_bundle) { |