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

Unified Diff: chrome/common/chrome_version_info_mac.mm

Issue 9240004: Transition to base/mac/bundle_locations.h step 3 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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: chrome/common/chrome_version_info_mac.mm
diff --git a/chrome/common/chrome_version_info_mac.mm b/chrome/common/chrome_version_info_mac.mm
index aacfbf3a27f1c5309714c3288a9a37441feafe45..b0a1cda974c8f7c7d3f9b1aa551b103b240d50f4 100644
--- a/chrome/common/chrome_version_info_mac.mm
+++ b/chrome/common/chrome_version_info_mac.mm
@@ -7,6 +7,7 @@
#import <Cocoa/Cocoa.h>
#include "base/basictypes.h"
+#include "base/mac/bundle_locations.h"
#include "base/sys_string_conversions.h"
namespace chrome {
@@ -14,9 +15,9 @@ namespace chrome {
// static
std::string VersionInfo::GetVersionStringModifier() {
#if defined(GOOGLE_CHROME_BUILD)
- // Use the main application bundle and not the framework bundle. Keystone
- // keys don't live in the framework.
- NSBundle* bundle = [NSBundle mainBundle];
+ // Use the main Chrome application bundle and not the framework bundle.
+ // Keystone keys don't live in the framework.
+ NSBundle* bundle = base::mac::OuterBundle();
NSString* channel = [bundle objectForInfoDictionaryKey:@"KSChannelID"];
// Only ever return "", "unknown", "beta", "dev", or "canary" in a branded

Powered by Google App Engine
This is Rietveld 408576698