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

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

Issue 2885853002: Instant: remove InstantSupportState (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « chrome/browser/ui/search/search_model_unittest.cc ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/search/search_tab_helper.cc
diff --git a/chrome/browser/ui/search/search_tab_helper.cc b/chrome/browser/ui/search/search_tab_helper.cc
index 68b5a816ad7825a3580c5108dc3e4bdf59b50b73..444524f48db60fb8d77653071734af1f49be15e4 100644
--- a/chrome/browser/ui/search/search_tab_helper.cc
+++ b/chrome/browser/ui/search/search_tab_helper.cc
@@ -286,8 +286,6 @@ void SearchTabHelper::DidFinishLoad(content::RenderFrameHost* render_frame_host,
if (!render_frame_host->GetParent()) {
if (search::IsInstantNTP(web_contents_))
RecordNewTabLoadTime(web_contents_);
-
- InstantSupportChanged(InInstantProcess(profile(), web_contents_));
}
}
@@ -301,8 +299,6 @@ void SearchTabHelper::NavigationEntryCommitted(
UpdateMode(/*update_origin=*/true);
- InstantSupportChanged(InInstantProcess(profile(), web_contents_));
-
if (InInstantProcess(profile(), web_contents_))
ipc_router_.OnNavigationEntryCommitted();
}
@@ -448,16 +444,6 @@ void SearchTabHelper::OnHistorySyncCheck() {
ipc_router_.SendHistorySyncCheckResult(IsHistorySyncEnabled(profile()));
}
-void SearchTabHelper::InstantSupportChanged(bool instant_support) {
- if (!is_search_enabled_)
- return;
-
- InstantSupportState new_state = instant_support ? INSTANT_SUPPORT_YES :
- INSTANT_SUPPORT_NO;
-
- model_.SetInstantSupportState(new_state);
-}
-
void SearchTabHelper::UpdateMode(bool update_origin) {
SearchMode::Type type = SearchMode::MODE_DEFAULT;
SearchMode::Origin origin = SearchMode::ORIGIN_DEFAULT;
« no previous file with comments | « chrome/browser/ui/search/search_model_unittest.cc ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698