No need to define WebContentsPreferences::From
This commit is contained in:
parent
3717f5b7f2
commit
24bbe5dabf
3 changed files with 8 additions and 17 deletions
|
@ -10,6 +10,8 @@
|
|||
#include "content/public/browser/browser_context.h"
|
||||
#include "native_mate/dictionary.h"
|
||||
|
||||
using atom::WebContentsPreferences;
|
||||
|
||||
namespace mate {
|
||||
|
||||
template<>
|
||||
|
@ -48,7 +50,7 @@ void AddGuest(int guest_instance_id,
|
|||
manager->AddGuest(guest_instance_id, element_instance_id, embedder,
|
||||
guest_web_contents);
|
||||
|
||||
atom::WebContentsPreferences::From(guest_web_contents)->Merge(options);
|
||||
WebContentsPreferences::FromWebContents(guest_web_contents)->Merge(options);
|
||||
}
|
||||
|
||||
void RemoveGuest(content::WebContents* embedder, int guest_instance_id) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue