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

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

Issue 2144733004: Merge InstantPage into InstantTab. (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
Index: chrome/browser/ui/search/instant_controller.cc
diff --git a/chrome/browser/ui/search/instant_controller.cc b/chrome/browser/ui/search/instant_controller.cc
index 607a29c2fda6129d3cb75f6ab1cda4442ec156c8..20457259d6a51a6c31b110b6ee0f94a224215d9c 100644
--- a/chrome/browser/ui/search/instant_controller.cc
+++ b/chrome/browser/ui/search/instant_controller.cc
@@ -31,7 +31,7 @@
namespace {
-bool IsContentsFrom(const InstantPage* page,
+bool IsContentsFrom(const InstantTab* page,
const content::WebContents* contents) {
return page && (page->web_contents() == contents);
}
@@ -124,8 +124,8 @@ InstantTab* InstantController::instant_tab() const {
void InstantController::InstantSupportChanged(
InstantSupportState instant_support) {
- // Handle INSTANT_SUPPORT_YES here because InstantPage is not hooked up to the
- // active tab. Search model changed listener in InstantPage will handle other
+ // Handle INSTANT_SUPPORT_YES here because InstantTab is not hooked up to the
+ // active tab. Search model changed listener in InstantTab will handle other
// cases.
if (instant_support != INSTANT_SUPPORT_YES)
return;
@@ -148,7 +148,7 @@ void InstantController::InstantSupportDetermined(
content::NotificationService::NoDetails());
}
-void InstantController::InstantPageAboutToNavigateMainFrame(
+void InstantController::InstantTabAboutToNavigateMainFrame(
const content::WebContents* contents,
const GURL& url) {
DCHECK(IsContentsFrom(instant_tab(), contents));

Powered by Google App Engine
This is Rietveld 408576698