summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa
diff options
context:
space:
mode:
authorrohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-29 15:03:27 +0000
committerrohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-29 15:03:27 +0000
commit90947d6f7c0959ef4ebb3561b4cc59b5c740225e (patch)
treee9dbc8aa9b000c3ba752cc58f739f484f15e04fb /chrome/browser/cocoa
parent02d192f1d84f6c8ac956519dec17dfb5b851f98a (diff)
downloadchromium_src-90947d6f7c0959ef4ebb3561b4cc59b5c740225e.zip
chromium_src-90947d6f7c0959ef4ebb3561b4cc59b5c740225e.tar.gz
chromium_src-90947d6f7c0959ef4ebb3561b4cc59b5c740225e.tar.bz2
[Mac] Force tab titles and favicons to update when committing an instant preview.
BUG=61939 TEST=Enable instant. Type a url into the omnibox and wait for the preview to load. Press enter. Tab title and favicon should be correct. Review URL: http://codereview.chromium.org/5363003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67533 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa')
-rw-r--r--chrome/browser/cocoa/tab_strip_controller.mm5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/tab_strip_controller.mm b/chrome/browser/cocoa/tab_strip_controller.mm
index c4b931b..8adf673 100644
--- a/chrome/browser/cocoa/tab_strip_controller.mm
+++ b/chrome/browser/cocoa/tab_strip_controller.mm
@@ -1093,6 +1093,11 @@ private:
[tabContentsArray_ replaceObjectAtIndex:index withObject:newController];
[delegate_ onReplaceTabWithContents:newContents->tab_contents()];
+
+ // Fake a tab changed notification to force tab titles and favicons to update.
+ [self tabChangedWithContents:newContents
+ atIndex:modelIndex
+ changeType:TabStripModelObserver::ALL];
}
// Remove all knowledge about this tab and its associated controller, and remove