Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Unified Diff: chrome/browser/android/logo_bridge.cc

Issue 2843403003: OnDoodleConfigRevalidated (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/android/logo_bridge.h ('k') | components/doodle/doodle_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()) {
« no previous file with comments | « chrome/browser/android/logo_bridge.h ('k') | components/doodle/doodle_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698