Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1207)

Unified Diff: chrome/browser/ui/search/search_delegate.cc

Issue 11824050: InstantExtended: Committed NTP (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup. Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}

Powered by Google App Engine
This is Rietveld 408576698