Avoid calling GetWebContentsFromProcessID for twice

This commit is contained in:
Cheng Zhao 2016-07-02 16:54:12 +09:00
parent b0faa62f76
commit 14c4be50c1
3 changed files with 7 additions and 15 deletions

View file

@ -100,9 +100,7 @@ class AtomBrowserClient : public brightray::BrowserClient,
const content::MainFunctionParams&) override;
void WebNotificationAllowed(
int render_process_id,
const base::Callback<void(bool)>& callback) override;
bool WebContentsAudioMuted(
int render_process_id) override;
const base::Callback<void(bool, bool)>& callback) override;
// content::RenderProcessHostObserver:
void RenderProcessHostDestroyed(content::RenderProcessHost* host) override;