remove unnecessary getter
This commit is contained in:
parent
f7556de9fb
commit
04c3e083fb
5 changed files with 8 additions and 13 deletions
|
@ -5,7 +5,6 @@
|
|||
#ifndef ATOM_BROWSER_WEB_CONTENTS_PERMISSION_HELPER_H_
|
||||
#define ATOM_BROWSER_WEB_CONTENTS_PERMISSION_HELPER_H_
|
||||
|
||||
#include "atom/browser/atom_browser_context.h"
|
||||
#include "content/public/browser/permission_type.h"
|
||||
#include "content/public/browser/web_contents_user_data.h"
|
||||
#include "content/public/common/media_stream_request.h"
|
||||
|
@ -24,10 +23,6 @@ class WebContentsPermissionHelper
|
|||
void RequestWebNotificationPermission(
|
||||
const base::Callback<void(bool)>& callback);
|
||||
|
||||
AtomBrowserContext* browser_context() const {
|
||||
return static_cast<AtomBrowserContext*>(web_contents_->GetBrowserContext());
|
||||
}
|
||||
|
||||
private:
|
||||
explicit WebContentsPermissionHelper(content::WebContents* web_contents);
|
||||
friend class content::WebContentsUserData<WebContentsPermissionHelper>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue