Index: chrome/browser/resources/local_ntp/most_visited_thumbnail.js |
diff --git a/chrome/browser/resources/local_ntp/most_visited_thumbnail.js b/chrome/browser/resources/local_ntp/most_visited_thumbnail.js |
index 8952d70afa0f96be8442e3e61b9c752d7e85d707..60051eb97be9c92b8f5cccf4d14114a62a669f53 100644 |
--- a/chrome/browser/resources/local_ntp/most_visited_thumbnail.js |
+++ b/chrome/browser/resources/local_ntp/most_visited_thumbnail.js |
@@ -51,9 +51,11 @@ window.addEventListener('DOMContentLoaded', function() { |
// The first thumbnail's onerror function will swap the visibility of |
// the two thumbnails. |
image.onerror = function() { |
+ logEvent(NTP_LOGGING_EVENT_TYPE.NTP_THUMBNAIL_FALLBACK); |
Mathieu
2013/09/03 21:40:23
NTP_FALLBACK_THUMBNAIL_USED?
beaudoin
2013/09/03 22:34:55
Done.
|
image.style.visibility = 'hidden'; |
image2.style.visibility = 'visible'; |
}; |
+ logEvent(NTP_LOGGING_EVENT_TYPE.NTP_THUMBNAIL_WITH_FALLBACK_ATTEMPT); |
Mathieu
2013/09/03 21:40:23
nit: NTP_FALLBACK_THUMBNAIL_REQUESTED to be closer
beaudoin
2013/09/03 22:34:55
Done.
|
} else { |
image.onerror = showDomainElement; |
} |