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

Unified Diff: chrome/browser/mac/keystone_glue.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: chrome/browser/mac/keystone_glue.mm
===================================================================
--- chrome/browser/mac/keystone_glue.mm (revision 119461)
+++ chrome/browser/mac/keystone_glue.mm (working copy)
@@ -14,6 +14,7 @@
#include "base/location.h"
#include "base/logging.h"
#include "base/mac/bundle_locations.h"
+#include "base/mac/mac_logging.h"
#include "base/mac/mac_util.h"
#include "base/mac/scoped_nsautorelease_pool.h"
#include "base/mac/scoped_nsexception_enabler.h"
@@ -853,7 +854,8 @@
NULL, // pipe
&exit_status);
if (status != errAuthorizationSuccess) {
- LOG(ERROR) << "AuthorizationExecuteWithPrivileges preflight: " << status;
+ OSSTATUS_LOG(ERROR, status)
+ << "AuthorizationExecuteWithPrivileges preflight";
[self updateStatus:kAutoupdatePromoteFailed version:nil];
return;
}
@@ -940,7 +942,8 @@
NULL, // pipe
&exit_status);
if (status != errAuthorizationSuccess) {
- LOG(ERROR) << "AuthorizationExecuteWithPrivileges postflight: " << status;
+ OSSTATUS_LOG(ERROR, status)
+ << "AuthorizationExecuteWithPrivileges postflight";
} else if (exit_status != 0) {
LOG(ERROR) << "keystone_promote_postflight status " << exit_status;
}

Powered by Google App Engine
This is Rietveld 408576698