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

Side by Side Diff: base/file_version_info_mac.mm

Issue 1538743002: Switch to standard integer types in base/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DEPS roll too Created 4 years, 12 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 unified diff | Download patch
« no previous file with comments | « base/file_version_info_mac.h ('k') | base/file_version_info_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/file_version_info_mac.h" 5 #include "base/file_version_info_mac.h"
6 6
7 #import <Foundation/Foundation.h> 7 #import <Foundation/Foundation.h>
8 8
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/mac/bundle_locations.h" 11 #include "base/mac/bundle_locations.h"
12 #include "base/mac/foundation_util.h" 12 #include "base/mac/foundation_util.h"
13 #include "base/strings/sys_string_conversions.h" 13 #include "base/strings/sys_string_conversions.h"
14 #include "build/build_config.h"
14 15
15 FileVersionInfoMac::FileVersionInfoMac(NSBundle *bundle) 16 FileVersionInfoMac::FileVersionInfoMac(NSBundle *bundle)
16 : bundle_([bundle retain]) { 17 : bundle_([bundle retain]) {
17 } 18 }
18 19
19 FileVersionInfoMac::~FileVersionInfoMac() {} 20 FileVersionInfoMac::~FileVersionInfoMac() {}
20 21
21 // static 22 // static
22 FileVersionInfo* FileVersionInfo::CreateFileVersionInfoForCurrentModule() { 23 FileVersionInfo* FileVersionInfo::CreateFileVersionInfoForCurrentModule() {
23 return CreateFileVersionInfo(base::mac::FrameworkBundlePath()); 24 return CreateFileVersionInfo(base::mac::FrameworkBundlePath());
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 base::string16 FileVersionInfoMac::GetString16Value(CFStringRef name) { 115 base::string16 FileVersionInfoMac::GetString16Value(CFStringRef name) {
115 if (bundle_) { 116 if (bundle_) {
116 NSString *ns_name = base::mac::CFToNSCast(name); 117 NSString *ns_name = base::mac::CFToNSCast(name);
117 NSString* value = [bundle_ objectForInfoDictionaryKey:ns_name]; 118 NSString* value = [bundle_ objectForInfoDictionaryKey:ns_name];
118 if (value) { 119 if (value) {
119 return base::SysNSStringToUTF16(value); 120 return base::SysNSStringToUTF16(value);
120 } 121 }
121 } 122 }
122 return base::string16(); 123 return base::string16();
123 } 124 }
OLDNEW
« no previous file with comments | « base/file_version_info_mac.h ('k') | base/file_version_info_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698