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

Unified Diff: chrome/browser/mac/authorization_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: chrome/browser/mac/authorization_util.mm
===================================================================
--- chrome/browser/mac/authorization_util.mm (revision 119461)
+++ chrome/browser/mac/authorization_util.mm (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -13,6 +13,7 @@
#include "base/eintr_wrapper.h"
#include "base/logging.h"
#include "base/mac/bundle_locations.h"
+#include "base/mac/mac_logging.h"
#import "base/mac/mac_util.h"
#include "base/string_number_conversions.h"
#include "base/string_util.h"
@@ -28,7 +29,7 @@
kAuthorizationFlagDefaults,
&authorization);
if (status != errAuthorizationSuccess) {
- LOG(ERROR) << "AuthorizationCreate: " << status;
+ OSSTATUS_LOG(ERROR, status) << "AuthorizationCreate";
return NULL;
}
@@ -73,7 +74,7 @@
NULL);
if (status != errAuthorizationSuccess) {
if (status != errAuthorizationCanceled) {
- LOG(ERROR) << "AuthorizationCopyRights: " << status;
+ OSSTATUS_LOG(ERROR, status) << "AuthorizationCopyRights";
}
return NULL;
}

Powered by Google App Engine
This is Rietveld 408576698