summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/views/frame/browser_view.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/views/frame/browser_view.cc b/chrome/browser/views/frame/browser_view.cc
index b13f0b3..01ff721 100644
--- a/chrome/browser/views/frame/browser_view.cc
+++ b/chrome/browser/views/frame/browser_view.cc
@@ -645,7 +645,8 @@ void BrowserView::TabSelectedAt(TabContents* old_contents,
// Update all the UI bits.
UpdateTitleBar();
- toolbar_->SetProfile(new_contents->profile());
+ Profile* profile = new_contents->profile(); // TODO(beng): remove after 1 cyc.
+ toolbar_->SetProfile(profile);
UpdateToolbar(new_contents, true);
UpdateUIForContents(new_contents);
}