Use RenderProcessPreferences for non-remote web contents

This commit is contained in:
Kevin Sawicki 2016-06-13 17:01:13 -07:00
parent 9223019af8
commit f25c1f864b
5 changed files with 16 additions and 12 deletions

View file

@ -1197,6 +1197,10 @@ bool WebContents::IsGuest() const {
return type_ == WEB_VIEW;
}
bool WebContents::IsRemote() const {
return type_ == REMOTE;
}
v8::Local<v8::Value> WebContents::GetWebPreferences(v8::Isolate* isolate) {
WebContentsPreferences* web_preferences =
WebContentsPreferences::FromWebContents(web_contents());