summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/gtk/bookmark_bar_gtk.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/gtk/bookmark_bar_gtk.cc')
-rw-r--r--chrome/browser/ui/gtk/bookmark_bar_gtk.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/chrome/browser/ui/gtk/bookmark_bar_gtk.cc b/chrome/browser/ui/gtk/bookmark_bar_gtk.cc
index 97faad8..6e76c1e 100644
--- a/chrome/browser/ui/gtk/bookmark_bar_gtk.cc
+++ b/chrome/browser/ui/gtk/bookmark_bar_gtk.cc
@@ -805,14 +805,11 @@ void BookmarkBarGtk::Observe(NotificationType type,
const NotificationSource& source,
const NotificationDetails& details) {
if (type == NotificationType::BROWSER_THEME_CHANGED) {
- if (model_) {
+ if (model_ && model_->IsLoaded()) {
// Regenerate the bookmark bar with all new objects with their theme
// properties set correctly for the new theme.
RemoveAllBookmarkButtons();
CreateAllBookmarkButtons();
- } else {
- DLOG(ERROR) << "Received a theme change notification while we "
- << "don't have a BookmarkModel. Taking no action.";
}
UpdateEventBoxPaintability();