Reduce the number of helpers

This commit is contained in:
Cheng Zhao 2017-12-20 10:49:49 +09:00
parent 4fd8b04329
commit b2e6340622
2 changed files with 3 additions and 14 deletions

View file

@ -43,12 +43,8 @@ class WebContentsPermissionHelper
void RequestPermission(
content::PermissionType permission,
const base::Callback<void(bool)>& callback,
bool user_gesture = false);
void RequestPermissionWithDetails(
content::PermissionType permission,
const base::Callback<void(bool)>& callback,
bool user_gesture,
const base::DictionaryValue* details);
bool user_gesture = false,
const base::DictionaryValue* details = nullptr);
content::WebContents* web_contents_;