diff options
author | erikchen <erikchen@chromium.org> | 2016-03-01 13:38:20 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-01 21:40:13 +0000 |
commit | 83e8f856e711121c3b196726877450fbbbec0761 (patch) | |
tree | 4c293003896828932f8274ac7305da7187fa7047 /remoting/host | |
parent | 1ffb363a1e011a850a4fbaa1f06a2cd318955a9b (diff) | |
download | chromium_src-83e8f856e711121c3b196726877450fbbbec0761.zip chromium_src-83e8f856e711121c3b196726877450fbbbec0761.tar.gz chromium_src-83e8f856e711121c3b196726877450fbbbec0761.tar.bz2 |
Use a non-deprecated method to get a string from an OSStatus error.
The functions GetMacOSStatusErrorString() and GetMacOSStatusCommentString() have
been deprecated since OSX 10.8. The official replacement is NSError.
BUG=547071
Review URL: https://codereview.chromium.org/1753523002
Cr-Commit-Position: refs/heads/master@{#378564}
Diffstat (limited to 'remoting/host')
-rw-r--r-- | remoting/host/mac/me2me_preference_pane.mm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/remoting/host/mac/me2me_preference_pane.mm b/remoting/host/mac/me2me_preference_pane.mm index 7fba5c2..508f5cd 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) { |