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

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

Issue 2146943002: Merge InstantTag into InstantPage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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_tab.h » ('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 fce80b3f15fe7a80898d2995e7edd29348a397d0..cf48b861be5063c0fe23589297511dcdf48f618e 100644
--- a/chrome/browser/ui/search/instant_page.cc
+++ b/chrome/browser/ui/search/instant_page.cc
@@ -34,7 +34,7 @@ InstantPage::InstantPage(Delegate* delegate)
: delegate_(delegate) {
}
-void InstantPage::SetContents(content::WebContents* new_web_contents) {
+void InstantPage::Init(content::WebContents* new_web_contents) {
ClearContents();
if (!new_web_contents)
@@ -50,16 +50,11 @@ void InstantPage::SetContents(content::WebContents* new_web_contents) {
InstantSupportDetermined(model->instant_support() == INSTANT_SUPPORT_YES);
}
-bool InstantPage::ShouldProcessAboutToNavigateMainFrame() {
- return false;
-}
-
void InstantPage::DidCommitProvisionalLoadForFrame(
content::RenderFrameHost* render_frame_host,
const GURL& url,
ui::PageTransition /* transition_type */) {
- if (!render_frame_host->GetParent() &&
- ShouldProcessAboutToNavigateMainFrame()) {
+ if (!render_frame_host->GetParent()) {
delegate_->InstantPageAboutToNavigateMainFrame(web_contents(), url);
}
}
« no previous file with comments | « chrome/browser/ui/search/instant_page.h ('k') | chrome/browser/ui/search/instant_tab.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698