
This reverts commit ada8e17125d2124f5bcdc1558182ce95d6311d93. Reason for revert: Breaks chromium, due to undeclared dependency on SystemConfiguration.framework Original change's description: > Delete mac_utils.h and mac_utils.cc > > They defined two functions: ToUtf16 and ToUtf8. The former was unused, > and the latter is moved to > modules/desktop_capture/mac/window_list_utils.cc, the only user. > > Tbr: sergeyu@chromium.org > Bug: None > Change-Id: Ib8a513da42e43ba8d41a2de4c1645b3f48448dc9 > Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/148531 > Commit-Queue: Niels Moller <nisse@webrtc.org> > Reviewed-by: Kári Helgason <kthelgason@webrtc.org> > Reviewed-by: Sergey Ulanov <sergeyu@google.com> > Cr-Commit-Position: refs/heads/master@{#28913} TBR=zijiehe@chromium.org,nisse@webrtc.org,kthelgason@webrtc.org,sergeyu@google.com,sergeyu@chromium.org Change-Id: I9d6a2f63b3acde0eefab92d034529b800d6adcab No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: None Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/149811 Reviewed-by: Niels Moller <nisse@webrtc.org> Commit-Queue: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/master@{#28915}
24 lines
720 B
C++
24 lines
720 B
C++
/*
|
|
* Copyright 2007 The WebRTC Project Authors. All rights reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
#ifndef RTC_BASE_MAC_UTILS_H_
|
|
#define RTC_BASE_MAC_UTILS_H_
|
|
|
|
#include <CoreFoundation/CoreFoundation.h>
|
|
|
|
#include <string>
|
|
|
|
namespace rtc {
|
|
bool ToUtf8(const CFStringRef str16, std::string* str8);
|
|
bool ToUtf16(const std::string& str8, CFStringRef* str16);
|
|
} // namespace rtc
|
|
|
|
#endif // RTC_BASE_MAC_UTILS_H_
|