Remove unnecessary methods on WebContentsPreferences

This commit is contained in:
Cheng Zhao 2018-02-13 15:57:54 +09:00
parent 2b623f5d86
commit affa21600c
5 changed files with 36 additions and 82 deletions

View file

@ -39,15 +39,6 @@ class WebContentsPreferences
static bool IsPreferenceEnabled(const std::string& attribute_name,
content::WebContents* web_contents);
static bool GetPreferenceString(const std::string& attribute_name,
content::WebContents* web_contents,
std::string* strValue);
static bool IsSandboxed(content::WebContents* web_contents);
static bool UsesNativeWindowOpen(content::WebContents* web_contents);
static bool DisablePopups(content::WebContents* web_contents);
static bool IsPluginsEnabled(content::WebContents* web_contents);
static bool GetAffinity(content::WebContents* web_contents,
std::string* string_value);
// Modify the WebPreferences according to |web_contents|'s preferences.
static void OverrideWebkitPrefs(