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

Unified Diff: chrome/browser/custom_home_pages_table_model.cc

Issue 879953002: Explicitly call OnModelChanged when there are no titles to load (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/custom_home_pages_table_model.cc
diff --git a/chrome/browser/custom_home_pages_table_model.cc b/chrome/browser/custom_home_pages_table_model.cc
index f8c716c1a46c0fa369127aab0c6cf8ea298cbec3..240c6193e9781924ab119ef0d52a668f7cae7d4d 100644
--- a/chrome/browser/custom_home_pages_table_model.cc
+++ b/chrome/browser/custom_home_pages_table_model.cc
@@ -260,6 +260,8 @@ void CustomHomePagesTableModel::LoadAllTitles() {
&task_tracker_);
}
}
+ if (entries_.empty())
+ observer_->OnModelChanged();
}
void CustomHomePagesTableModel::OnGotOneOfManyTitles(const GURL& entry_url,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698