Chromium Code Reviews| Index: chrome/browser/chrome_content_browser_client.cc |
| diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc |
| index a855f0c40ba78f1d8d9dbfd5a9699027e5e0ce33..44203edd2be2c57b0ab02f7942feca8b59743d0d 100644 |
| --- a/chrome/browser/chrome_content_browser_client.cc |
| +++ b/chrome/browser/chrome_content_browser_client.cc |
| @@ -2272,6 +2272,16 @@ void ChromeContentBrowserClient::OverrideWebkitPrefs( |
| web_prefs->hyperlink_auditing_enabled = |
| prefs->GetBoolean(prefs::kEnableHyperlinkAuditing); |
| + std::string image_animation_policy = |
| + prefs->GetString(prefs::kAnimationPolicy); |
| + if (image_animation_policy == "once") |
|
dmazzoni
2015/01/27 06:52:41
Same here, these strings should be string constant
je_julie(Not used)
2015/01/28 04:42:00
I updated it with string constants.
|
| + web_prefs->animation_policy = |
| + content::IMAGE_ANIMATION_POLICY_ANIMATION_ONCE; |
| + else if (image_animation_policy == "none") |
| + web_prefs->animation_policy = content::IMAGE_ANIMATION_POLICY_NO_ANIMATION; |
| + else |
| + web_prefs->animation_policy = content::IMAGE_ANIMATION_POLICY_ALLOWED; |
| + |
| // Make sure we will set the default_encoding with canonical encoding name. |
| web_prefs->default_encoding = |
| CharacterEncoding::GetCanonicalEncodingNameByAliasName( |