summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorrohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-24 16:45:45 +0000
committerrohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-24 16:45:45 +0000
commit1fd5466bc7bce3bfa55870d76b7aca412465930f (patch)
treeb4a5591bcad7188f6bfd3efdf62418707adf25aa /base
parent7e6cf06dd49da1f9b11e66f66cb7aff9b973f232 (diff)
downloadchromium_src-1fd5466bc7bce3bfa55870d76b7aca412465930f.zip
chromium_src-1fd5466bc7bce3bfa55870d76b7aca412465930f.tar.gz
chromium_src-1fd5466bc7bce3bfa55870d76b7aca412465930f.tar.bz2
[Mac] Revert the diagnostic messages added in r57088.
BUG=52918 TEST=Less log spam. Review URL: http://codereview.chromium.org/3164035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57194 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/mac_util.mm14
1 files changed, 2 insertions, 12 deletions
diff --git a/base/mac_util.mm b/base/mac_util.mm
index 4dd80b1..8b0d481 100644
--- a/base/mac_util.mm
+++ b/base/mac_util.mm
@@ -77,23 +77,13 @@ bool AmIBundled() {
}
FSCatalogInfo info;
- HFSUniStr255 hfsname;
if (FSGetCatalogInfo(&fsref, kFSCatInfoNodeFlags, &info,
- &hfsname, NULL, NULL) != noErr) {
+ NULL, NULL, NULL) != noErr) {
LOG(ERROR) << "FSGetCatalogInfo failed, returning false";
return false;
}
- scoped_cftyperef<CFStringRef> cfname(
- CFStringCreateWithCharacters(kCFAllocatorDefault,
- hfsname.unicode,
- hfsname.length));
- std::string filename = base::SysCFStringRefToUTF8(cfname);
- bool bundled = info.nodeFlags & kFSNodeIsDirectoryMask;
- LOG(ERROR) << "AmIBundled() filename is: " << filename
- << ", returning " << (bundled ? "true" : "false");
-
- return bundled;
+ return info.nodeFlags & kFSNodeIsDirectoryMask;
}
bool IsBackgroundOnlyProcess() {