Extract common code into IsPreferenceEnabled method

This commit is contained in:
rreimann 2017-05-19 11:51:12 +02:00 committed by Kevin Sawicki
parent 65da983ccb
commit 791486433d
2 changed files with 14 additions and 28 deletions

View file

@ -37,6 +37,8 @@ class WebContentsPreferences
static void AppendExtraCommandLineSwitches(
content::WebContents* web_contents, base::CommandLine* command_line);
static bool IsPreferenceEnabled(const std::string& attributeName,
content::WebContents* web_contents);
static bool IsSandboxed(content::WebContents* web_contents);
static bool UsesNativeWindowOpen(content::WebContents* web_contents);
static bool IsPluginsEnabled(content::WebContents* web_contents);