diff options
Diffstat (limited to 'chrome/browser/views/tabs/tab_renderer.cc')
-rw-r--r-- | chrome/browser/views/tabs/tab_renderer.cc | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/chrome/browser/views/tabs/tab_renderer.cc b/chrome/browser/views/tabs/tab_renderer.cc index 4ee10cf..e2d6381 100644 --- a/chrome/browser/views/tabs/tab_renderer.cc +++ b/chrome/browser/views/tabs/tab_renderer.cc @@ -236,15 +236,20 @@ TabRenderer::~TabRenderer() { delete crash_animation_; } -void TabRenderer::UpdateData(TabContents* contents) { +void TabRenderer::UpdateData(TabContents* contents, bool loading_only) { DCHECK(contents); - data_.favicon = contents->GetFavIcon(); - data_.title = UTF16ToWideHack(contents->GetTitle()); + if (!loading_only) { + data_.title = UTF16ToWideHack(contents->GetTitle()); + data_.off_the_record = contents->profile()->IsOffTheRecord(); + data_.show_download_icon = contents->IsDownloadShelfVisible(); + data_.crashed = contents->is_crashed(); + data_.favicon = contents->GetFavIcon(); + } + + // Loading state also involves whether we show the favicon, since that's where + // we display the throbber. data_.loading = contents->is_loading(); - data_.off_the_record = contents->profile()->IsOffTheRecord(); data_.show_icon = contents->ShouldDisplayFavIcon(); - data_.show_download_icon = contents->IsDownloadShelfVisible(); - data_.crashed = contents->is_crashed(); } void TabRenderer::UpdateFromModel() { |