Skip to content

Commit 20bab8d

Browse files
committed
update OverrideWebkitPrefsHook signature
1 parent 6eb3806 commit 20bab8d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/browser/nw_content_browser_hooks.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ CONTENT_EXPORT void OSXOpenURLsHook(const std::vector<GURL>& startup_urls) {
155155
}
156156
#endif
157157

158-
void OverrideWebkitPrefsHook(content::RenderViewHost* rvh, blink::web_pref::WebPreferences* web_prefs) {
158+
void OverrideWebkitPrefsHook(content::WebContents* web_contents, blink::web_pref::WebPreferences* web_prefs) {
159159
nw::Package* package = nw::package();
160160
if (!package)
161161
return;

src/browser/nw_content_browser_hooks.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ CONTENT_EXPORT void RendererProcessTerminatedHook(content::RenderProcessHost* pr
4444
bool ProcessSingletonNotificationCallbackHook(const base::CommandLine& command_line,
4545
const base::FilePath& current_directory);
4646
// ref in chrome/browser/chrome_content_browser_client.cc
47-
CONTENT_EXPORT void OverrideWebkitPrefsHook(content::RenderViewHost* rvh, blink::web_pref::WebPreferences* web_prefs);
47+
CONTENT_EXPORT void OverrideWebkitPrefsHook(content::WebContents* web_conents, blink::web_pref::WebPreferences* web_prefs);
4848
// ref in chrome/browser/chrome_content_browser_client.cc
4949
// content/browser/renderer_host/render_process_host_impl.cc
5050
// content/browser/site_instance_impl.cc

src/nw_content.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ void DocumentFinishHook(blink::WebLocalFrame* frame,
9898
void ReloadExtensionHook(const extensions::Extension*);
9999
bool IsReloadingApp();
100100
void KickNextTick();
101-
void OverrideWebkitPrefsHook(content::RenderViewHost* rvh, blink::web_pref::WebPreferences* web_prefs);
101+
void OverrideWebkitPrefsHook(content::WebContents* web_contents, blink::web_pref::WebPreferences* web_prefs);
102102
bool PinningRenderer();
103103
void SetPinningRenderer(bool pin);
104104
void ShowDevtools(bool show, content::WebContents* web_contents, content::WebContents* container = nullptr);

0 commit comments

Comments
 (0)