Make int converter helper an instance method
This commit is contained in:
parent
7ec88d16a6
commit
4de637779b
2 changed files with 19 additions and 24 deletions
|
@ -39,9 +39,6 @@ class WebContentsPreferences
|
|||
|
||||
static bool IsSandboxed(content::WebContents* web_contents);
|
||||
|
||||
static bool ConvertValueToIntegerFromString(
|
||||
WebContentsPreferences* pref, std::string attributeName, int* intValue);
|
||||
|
||||
// Modify the WebPreferences according to |web_contents|'s preferences.
|
||||
static void OverrideWebkitPrefs(
|
||||
content::WebContents* web_contents, content::WebPreferences* prefs);
|
||||
|
@ -64,6 +61,9 @@ class WebContentsPreferences
|
|||
content::WebContents* web_contents_;
|
||||
base::DictionaryValue web_preferences_;
|
||||
|
||||
// Get preferences value as integer possibly coercing it from a string
|
||||
bool GetInteger(const std::string& attributeName, int* intValue);
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(WebContentsPreferences);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue