summaryrefslogtreecommitdiffstats
path: root/components/search_provider_logos/logo_cache.cc
diff options
context:
space:
mode:
authorjustincohen <justincohen@chromium.org>2015-04-03 09:36:03 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-03 16:36:29 +0000
commite30018a1830440f1dca72e11605a69592c472883 (patch)
treef043febc91848af5a1f324e9bf0ea61dc09b182c /components/search_provider_logos/logo_cache.cc
parent8828ed3647a456dd46827282c31c451d194c7ca0 (diff)
downloadchromium_src-e30018a1830440f1dca72e11605a69592c472883.zip
chromium_src-e30018a1830440f1dca72e11605a69592c472883.tar.gz
chromium_src-e30018a1830440f1dca72e11605a69592c472883.tar.bz2
Add animated url to LogoTracker.
BUG=414528 Review URL: https://codereview.chromium.org/1054123002 Cr-Commit-Position: refs/heads/master@{#323754}
Diffstat (limited to 'components/search_provider_logos/logo_cache.cc')
-rw-r--r--components/search_provider_logos/logo_cache.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/search_provider_logos/logo_cache.cc b/components/search_provider_logos/logo_cache.cc
index bb3e8dd..bfa419e 100644
--- a/components/search_provider_logos/logo_cache.cc
+++ b/components/search_provider_logos/logo_cache.cc
@@ -21,6 +21,7 @@ const char kOnClickURLKey[] = "on_click_url";
const char kAltTextKey[] = "alt_text";
const char kMimeTypeKey[] = "mime_type";
const char kNumBytesKey[] = "num_bytes";
+const char kAnimatedUrlKey[] = "animated_url";
bool GetTimeValue(const base::DictionaryValue& dict,
const std::string& key,
@@ -124,6 +125,7 @@ scoped_ptr<LogoMetadata> LogoCache::LogoMetadataFromString(
!dict->GetString(kFingerprintKey, &metadata->fingerprint) ||
!dict->GetString(kOnClickURLKey, &metadata->on_click_url) ||
!dict->GetString(kAltTextKey, &metadata->alt_text) ||
+ !dict->GetString(kAnimatedUrlKey, &metadata->animated_url) ||
!dict->GetString(kMimeTypeKey, &metadata->mime_type) ||
!dict->GetBoolean(kCanShowAfterExpirationKey,
&metadata->can_show_after_expiration) ||
@@ -144,6 +146,7 @@ void LogoCache::LogoMetadataToString(const LogoMetadata& metadata,
dict.SetString(kFingerprintKey, metadata.fingerprint);
dict.SetString(kOnClickURLKey, metadata.on_click_url);
dict.SetString(kAltTextKey, metadata.alt_text);
+ dict.SetString(kAnimatedUrlKey, metadata.animated_url);
dict.SetString(kMimeTypeKey, metadata.mime_type);
dict.SetBoolean(kCanShowAfterExpirationKey,
metadata.can_show_after_expiration);