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

Unified Diff: remoting/host/mac/me2me_preference_pane.mm

Issue 1753523002: Use a non-deprecated method to get a string from an OSStatus error . (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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: remoting/host/mac/me2me_preference_pane.mm
diff --git a/remoting/host/mac/me2me_preference_pane.mm b/remoting/host/mac/me2me_preference_pane.mm
index 7fba5c2630a29dc5bd84d279197f003c7225b430..508f5cd648487f93d0328e465ae4cd6d9d78a606 100644
--- a/remoting/host/mac/me2me_preference_pane.mm
+++ b/remoting/host/mac/me2me_preference_pane.mm
@@ -16,6 +16,7 @@
#include <fstream>
+#include "base/mac/mac_logging.h"
#include "base/mac/scoped_launch_data.h"
#include "base/memory/scoped_ptr.h"
#include "base/posix/eintr_wrapper.h"
@@ -521,7 +522,8 @@ std::string JsonHostConfig::GetSerializedData() const {
&pid);
if (status != errAuthorizationSuccess) {
NSLog(@"AuthorizationExecuteWithPrivileges: %s (%d)",
- GetMacOSStatusErrorString(status), static_cast<int>(status));
+ logging::DescriptionFromOSStatus(status).c_str(),
+ static_cast<int>(status));
return NO;
}
if (pid == -1) {

Powered by Google App Engine
This is Rietveld 408576698