Add WebContentsPreferences::From that checks parameter
This commit is contained in:
parent
9772777919
commit
887bc12350
7 changed files with 21 additions and 15 deletions
|
@ -115,7 +115,7 @@ BrowserWindow::BrowserWindow(v8::Isolate* isolate,
|
|||
// These preferences will be used when the webContent launches new
|
||||
// render processes.
|
||||
auto* existing_preferences =
|
||||
WebContentsPreferences::FromWebContents(web_contents->web_contents());
|
||||
WebContentsPreferences::From(web_contents->web_contents());
|
||||
base::DictionaryValue web_preferences_dict;
|
||||
if (mate::ConvertFromV8(isolate, web_preferences.GetHandle(),
|
||||
&web_preferences_dict)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue