| Index: components/doodle/doodle_service.cc
|
| diff --git a/components/doodle/doodle_service.cc b/components/doodle/doodle_service.cc
|
| index cd4b053edf1c7083b14f13e6c7f8db6e290bd971..ee7c1787b5420a742fc82c40980b0f8fa115fb4c 100644
|
| --- a/components/doodle/doodle_service.cc
|
| +++ b/components/doodle/doodle_service.cc
|
| @@ -192,10 +192,16 @@ DoodleService::DownloadOutcome DoodleService::HandleNewConfig(
|
| DownloadOutcome outcome =
|
| DetermineDownloadOutcome(cached_config_, new_config, state, expired);
|
|
|
| - // If the config changed, update our cache and notify observers.
|
| // Note that this checks both for existence changes as well as changes of the
|
| // configs themselves.
|
| - if (cached_config_ != new_config) {
|
| + if (cached_config_ == new_config) {
|
| + for (auto& observer : observers_) {
|
| + observer.OnDoodleConfigRevalidated();
|
| + }
|
| + } else {
|
| + // The config changed. Update our cache and the prefs, and notify observers.
|
| + cached_config_ = new_config;
|
| +
|
| UpdateCachedConfig(time_to_live, new_config);
|
|
|
| for (auto& observer : observers_) {
|
|
|