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

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

Issue 137993020: (Try 2) InstantExtended: remove dead code related to the non-cacheable NTP. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disable InstantPolicyTests Created 6 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
« no previous file with comments | « chrome/browser/ui/search/instant_page.h ('k') | chrome/browser/ui/search/instant_page_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/search/instant_page.cc
diff --git a/chrome/browser/ui/search/instant_page.cc b/chrome/browser/ui/search/instant_page.cc
index 7e1bec735864b23cce847bdd30f466d662f90c32..0b4f69217d1ec1bc0f891d8d0f72e36bef1a7b6c 100644
--- a/chrome/browser/ui/search/instant_page.cc
+++ b/chrome/browser/ui/search/instant_page.cc
@@ -80,28 +80,6 @@ void InstantPage::DidCommitProvisionalLoadForFrame(
delegate_->InstantPageAboutToNavigateMainFrame(contents(), url);
}
-void InstantPage::DidNavigateMainFrame(
- const content::LoadCommittedDetails& details,
- const content::FrameNavigateParams& /* params */) {
- // A 204 can be sent by the search provider as a lightweight signal
- // to fall back to the local page, and we obviously want to fall back
- // if we get any response code that indicates an error.
- if (details.http_status_code == 204 || details.http_status_code >= 400)
- delegate_->InstantPageLoadFailed(contents());
-}
-
-void InstantPage::DidFailProvisionalLoad(
- int64 /* frame_id */,
- const base::string16& frame_unique_name,
- bool is_main_frame,
- const GURL& /* validated_url */,
- int /* error_code */,
- const base::string16& /* error_description */,
- content::RenderViewHost* /* render_view_host */) {
- if (is_main_frame)
- delegate_->InstantPageLoadFailed(contents());
-}
-
void InstantPage::ModelChanged(const SearchModel::State& old_state,
const SearchModel::State& new_state) {
if (old_state.instant_support != new_state.instant_support)
« no previous file with comments | « chrome/browser/ui/search/instant_page.h ('k') | chrome/browser/ui/search/instant_page_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698