Index: chrome/browser/ui/search/search_delegate.cc |
diff --git a/chrome/browser/ui/search/search_delegate.cc b/chrome/browser/ui/search/search_delegate.cc |
index 3f4d7a9bb4f3e87f060b63bce186ca8af49d5fb6..c0e879a548335ac4a3d7d5ff14f9391d5b8ee961 100644 |
--- a/chrome/browser/ui/search/search_delegate.cc |
+++ b/chrome/browser/ui/search/search_delegate.cc |
@@ -31,6 +31,7 @@ void SearchDelegate::OnTabActivated(content::WebContents* web_contents) { |
chrome::search::SearchTabHelper::FromWebContents(web_contents)->model(); |
DCHECK_EQ(tab_model_->web_contents(), web_contents); |
browser_model_->set_web_contents(web_contents); |
+ // TODO: ok that this gets called with mode DEFAULT when new tab is created? |
browser_model_->SetMode(tab_model_->mode()); |
tab_model_->AddObserver(this); |
} |