| Index: webrtc/base/macwindowpicker.cc
|
| diff --git a/webrtc/base/macwindowpicker.cc b/webrtc/base/macwindowpicker.cc
|
| index bb97d20f1ac493caceab92eca813b5558a0931bf..32bbcaf5fb7efcf1edef1053a21952dfa9f21d4d 100644
|
| --- a/webrtc/base/macwindowpicker.cc
|
| +++ b/webrtc/base/macwindowpicker.cc
|
| @@ -160,6 +160,9 @@ bool MacWindowPicker::MoveToFront(const WindowId& id) {
|
| // to front might be behind another X application.
|
| ProcessSerialNumber psn;
|
| pid_t pid = pid_val;
|
| +// TODO(hjon): Update deprecated APIs (see webrtc:5478 for details).
|
| +#pragma clang diagnostic push
|
| +#pragma clang diagnostic ignored "-Wdeprecated"
|
| int res = GetProcessForPID(pid, &psn);
|
| if (res != 0) {
|
| LOG(LS_ERROR) << "Failed getting process for pid";
|
| @@ -170,6 +173,7 @@ bool MacWindowPicker::MoveToFront(const WindowId& id) {
|
| LOG(LS_ERROR) << "Failed setting process to front";
|
| result = false;
|
| }
|
| +#pragma clang diagnostic pop
|
| }
|
| CFRelease(window_id_array);
|
| CFRelease(window_array);
|
|
|