Fixed pass by reference and added spec
This commit is contained in:
parent
950e3436c2
commit
d5a658bbe4
3 changed files with 20 additions and 4 deletions
|
@ -1067,13 +1067,13 @@ void WebContents::GoToOffset(int offset) {
|
|||
web_contents()->GetController().GoToOffset(offset);
|
||||
}
|
||||
|
||||
const std::string& WebContents::GetWebRTCIPHandlingPolicy() const {
|
||||
const std::string WebContents::GetWebRTCIPHandlingPolicy() const {
|
||||
return web_contents()->
|
||||
GetMutableRendererPrefs()->webrtc_ip_handling_policy;
|
||||
}
|
||||
|
||||
void WebContents::SetWebRTCIPHandlingPolicy(
|
||||
const std::string webrtc_ip_handling_policy) {
|
||||
const std::string& webrtc_ip_handling_policy) {
|
||||
if (GetWebRTCIPHandlingPolicy() == webrtc_ip_handling_policy)
|
||||
return;
|
||||
web_contents()->GetMutableRendererPrefs()->webrtc_ip_handling_policy =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue