diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-04 17:55:46 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-04 17:55:46 +0000 |
commit | 2b4355c4590724ae676f0ec5a8230e5c8c4cddf9 (patch) | |
tree | a087c519b35898d4f8e097f223f7658fd9315638 /chrome/browser/tabs/tab_strip_model.cc | |
parent | 1d5222071e5876b345e84d475573ef5db14ba1b4 (diff) | |
download | chromium_src-2b4355c4590724ae676f0ec5a8230e5c8c4cddf9.zip chromium_src-2b4355c4590724ae676f0ec5a8230e5c8c4cddf9.tar.gz chromium_src-2b4355c4590724ae676f0ec5a8230e5c8c4cddf9.tar.bz2 |
Make the throbber throb sooner after you navigate. This fixes the new tab page,
which would not start throbbing until the load committed. I think this was always
broken, but switching the tab contents types covered it up.
Now I have a flag that goes along with the tab updating that indicates if it's
a load update or a full update. This is necessary to avoid updating the title
to the page's URL until it does actually commit.
BUG=9310
Review URL: http://codereview.chromium.org/60066
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13131 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tabs/tab_strip_model.cc')
-rw-r--r-- | chrome/browser/tabs/tab_strip_model.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/tabs/tab_strip_model.cc b/chrome/browser/tabs/tab_strip_model.cc index 821c80d..e5ee652 100644 --- a/chrome/browser/tabs/tab_strip_model.cc +++ b/chrome/browser/tabs/tab_strip_model.cc @@ -159,7 +159,7 @@ void TabStripModel::ReplaceTabContentsAt(int index, 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 @@ int TabStripModel::GetIndexOfController( 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() { |