Index: chrome/browser/android/logo_bridge.cc |
diff --git a/chrome/browser/android/logo_bridge.cc b/chrome/browser/android/logo_bridge.cc |
index 8b24611abf5673c2f5d5822656c2494971bc0b04..40c7c295d9bf07fd3ed529846f2a7c9e47218cc6 100644 |
--- a/chrome/browser/android/logo_bridge.cc |
+++ b/chrome/browser/android/logo_bridge.cc |
@@ -246,6 +246,18 @@ void LogoBridge::GetAnimatedLogo(JNIEnv* env, |
animated_logo_fetcher_->Start(env, url, j_callback); |
} |
+void LogoBridge::OnDoodleConfigRevalidated() { |
+ if (j_logo_observer_.is_null()) { |
+ return; |
+ } |
+ // If an existing config got re-validated, there's nothing to do - the UI is |
+ // already in the correct state. However, we do tell the UI when we validate |
+ // that there really isn't a Doodle. This is needed for metrics tracking. |
+ if (!doodle_service_->config().has_value()) { |
+ DoodleConfigReceived(base::nullopt, /*from_cache=*/false); |
+ } |
+} |
+ |
void LogoBridge::OnDoodleConfigUpdated( |
const base::Optional<doodle::DoodleConfig>& maybe_doodle_config) { |
if (j_logo_observer_.is_null()) { |