Skip to content

Commit

Permalink
Fix error caused by refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
zcbenz committed Mar 22, 2018
1 parent 6df2326 commit 0abbedc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
3 changes: 2 additions & 1 deletion atom/browser/atom_browser_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ void AtomBrowserClient::RenderProcessWillLaunch(
new WidevineCdmMessageFilter(process_id, host->GetBrowserContext()));

ProcessPreferences prefs;
auto* web_preferences = WebContentsPreferences::From(process_id);
auto* web_preferences = WebContentsPreferences::From(
GetWebContentsFromProcessID(process_id));
if (web_preferences) {
prefs.sandbox = web_preferences->IsEnabled("sandbox");
prefs.native_window_open = web_preferences->IsEnabled("nativeWindowOpen");
Expand Down
5 changes: 0 additions & 5 deletions atom/browser/web_contents_preferences.cc
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,6 @@ WebContentsPreferences* WebContentsPreferences::From(
return FromWebContents(web_contents);
}

// static
WebContentsPreferences* WebContentsPreferences::From(int process_id) {
return From(GetWebContentsFromProcessID(process_id));
}

void WebContentsPreferences::AppendCommandLineSwitches(
base::CommandLine* command_line) {
bool b;
Expand Down
2 changes: 0 additions & 2 deletions atom/browser/web_contents_preferences.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ class WebContentsPreferences
public:
// Get self from WebContents.
static WebContentsPreferences* From(content::WebContents* web_contents);
// Get self from procese ID.
static WebContentsPreferences* From(int process_id);

WebContentsPreferences(content::WebContents* web_contents,
const mate::Dictionary& web_preferences);
Expand Down

0 comments on commit 0abbedc

Please sign in to comment.