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

Unified Diff: base/mac/foundation_util.mm

Issue 9235084: Add OSSTATUS_LOG API (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: base/mac/foundation_util.mm
===================================================================
--- base/mac/foundation_util.mm (revision 119461)
+++ base/mac/foundation_util.mm (working copy)
@@ -10,6 +10,7 @@
#include "base/file_path.h"
#include "base/logging.h"
#include "base/mac/bundle_locations.h"
+#include "base/mac/mac_logging.h"
#include "base/sys_string_conversions.h"
namespace base {
@@ -28,7 +29,7 @@
FSRef fsref;
OSStatus pbErr;
if ((pbErr = GetProcessBundleLocation(&psn, &fsref)) != noErr) {
- DLOG(ERROR) << "GetProcessBundleLocation failed: error " << pbErr;
+ OSSTATUS_DLOG(ERROR, pbErr) << "GetProcessBundleLocation failed";
return false;
}
@@ -36,7 +37,7 @@
OSErr fsErr;
if ((fsErr = FSGetCatalogInfo(&fsref, kFSCatInfoNodeFlags, &info,
NULL, NULL, NULL)) != noErr) {
- DLOG(ERROR) << "FSGetCatalogInfo failed: error " << fsErr;
+ OSSTATUS_DLOG(ERROR, fsErr) << "FSGetCatalogInfo failed";
return false;
}

Powered by Google App Engine
This is Rietveld 408576698