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

Unified Diff: chrome/browser/tabs/tab_strip_model.cc

Issue 60066: Make the throbber throb sooner after you navigate. This fixes the new tab pag... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 9 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
Index: chrome/browser/tabs/tab_strip_model.cc
===================================================================
--- chrome/browser/tabs/tab_strip_model.cc (revision 13028)
+++ chrome/browser/tabs/tab_strip_model.cc (working copy)
@@ -159,7 +159,7 @@
contents_data_[index]->contents = replacement_contents;
FOR_EACH_OBSERVER(TabStripModelObserver, observers_,
- TabChangedAt(replacement_contents, index));
+ TabChangedAt(replacement_contents, index, false));
// Re-use the logic for selecting tabs to ensure the replacement contents is
// shown and sized appropriately.
@@ -215,11 +215,11 @@
return kNoTab;
}
-void TabStripModel::UpdateTabContentsStateAt(int index) {
+void TabStripModel::UpdateTabContentsStateAt(int index, bool loading_only) {
DCHECK(ContainsIndex(index));
FOR_EACH_OBSERVER(TabStripModelObserver, observers_,
- TabChangedAt(GetContentsAt(index), index));
+ TabChangedAt(GetContentsAt(index), index, loading_only));
}
void TabStripModel::CloseAllTabs() {

Powered by Google App Engine
This is Rietveld 408576698