Commit 1751f079 authored by Kyle Milka's avatar Kyle Milka Committed by Commit Bot

[NTP] Show custom background when undoing a theme installation

When undo is pressed on the theme installation info bar the background
should be reset to the selected custom background. To accomplish this
run the same update theme info logic whenever the theme is changed.

Bug: 881750
Change-Id: I1fe5d8d2f8c6d9459a65a4cd801b5583b8f21935
Reviewed-on: https://chromium-review.googlesource.com/1252461
Commit-Queue: Kyle Milka <kmilka@chromium.org>
Reviewed-by: default avatarKristi Park <kristipark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#595199}
parent 404c2004
...@@ -458,8 +458,8 @@ void InstantService::Observe(int type, ...@@ -458,8 +458,8 @@ void InstantService::Observe(int type,
break; break;
} }
case chrome::NOTIFICATION_BROWSER_THEME_CHANGED: case chrome::NOTIFICATION_BROWSER_THEME_CHANGED:
BuildThemeInfo(); theme_info_ = nullptr;
NotifyAboutThemeInfo(); UpdateThemeInfo();
break; break;
default: default:
NOTREACHED() << "Unexpected notification type in InstantService."; NOTREACHED() << "Unexpected notification type in InstantService.";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment