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 67c75bc3ae0bdf466b05544dd59c0e5f8a82fa1f..80bec314a4f2796bce1fa010d3846ab9b4e97dcf 100644 |
--- a/chrome/browser/chrome_content_browser_client.cc |
+++ b/chrome/browser/chrome_content_browser_client.cc |
@@ -2331,6 +2331,14 @@ void ChromeContentBrowserClient::OverrideWebkitPrefs( |
web_prefs->hyperlink_auditing_enabled = |
prefs->GetBoolean(prefs::kEnableHyperlinkAuditing); |
+ std::string image_animation_policy = prefs->GetString(prefs::kAnimationPolicy); |
not at google - send to devlin
2014/12/11 17:48:15
Please run git cl format over this CL.
je_julie(Not used)
2014/12/12 13:15:45
I ran git cl format with new patchset.
|
+ if (image_animation_policy == "once") |
+ 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( |