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

Side by Side Diff: base/file_version_info_mac.mm

Issue 118162: Reduce header dependencies in base/ (Closed)
Patch Set: Created 11 years, 6 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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.h" 5 #include "base/file_version_info.h"
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 8
9 #include "base/file_path.h"
9 #include "base/logging.h" 10 #include "base/logging.h"
10 #include "base/string_util.h" 11 #include "base/string_util.h"
11 12
12 FileVersionInfo::FileVersionInfo(NSBundle *bundle) : bundle_(bundle) { 13 FileVersionInfo::FileVersionInfo(NSBundle *bundle) : bundle_(bundle) {
13 [bundle_ retain]; 14 [bundle_ retain];
14 } 15 }
15 16
16 FileVersionInfo::~FileVersionInfo() { 17 FileVersionInfo::~FileVersionInfo() {
17 [bundle_ release]; 18 [bundle_ release];
18 } 19 }
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 } 127 }
127 return false; 128 return false;
128 } 129 }
129 130
130 std::wstring FileVersionInfo::GetStringValue(const wchar_t* name) { 131 std::wstring FileVersionInfo::GetStringValue(const wchar_t* name) {
131 std::wstring str; 132 std::wstring str;
132 if (GetValue(name, &str)) 133 if (GetValue(name, &str))
133 return str; 134 return str;
134 return L""; 135 return L"";
135 } 136 }
OLDNEW
« no previous file with comments | « base/file_version_info.cc ('k') | base/idle_timer.h » ('j') | base/system_monitor.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698