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

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

Issue 2147483002: Cleanup: remove dead code from InstantPage and InstantController (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.h
diff --git a/chrome/browser/ui/search/instant_controller.h b/chrome/browser/ui/search/instant_controller.h
index 9a099ff815eb2e6d348b510eb4fdd3a852cc05f7..7c55fb69ea8e140e422029dfddd4583e01c0db06 100644
--- a/chrome/browser/ui/search/instant_controller.h
+++ b/chrome/browser/ui/search/instant_controller.h
@@ -11,14 +11,12 @@
#include <memory>
#include <string>
#include <utility>
-#include <vector>
#include "base/gtest_prod_util.h"
#include "base/macros.h"
#include "base/strings/string16.h"
#include "chrome/browser/ui/search/instant_page.h"
#include "chrome/common/search/search_types.h"
-#include "ui/gfx/native_widget_types.h"
class BrowserInstantController;
class GURL;
@@ -31,10 +29,6 @@ namespace content {
class WebContents;
}
-// Macro used for logging debug events. |message| should be a std::string.
-#define LOG_INSTANT_DEBUG_EVENT(controller, message) \
- controller->LogDebugEvent(message)
-
// InstantController drives Chrome Instant, i.e., the browser implementation of
// the Embedded Search API (see http://dev.chromium.org/embeddedsearch).
//
@@ -121,18 +115,11 @@ class InstantController : public InstantPage::Delegate {
void InstantPageAboutToNavigateMainFrame(const content::WebContents* contents,
const GURL& url) override;
- // Helper function to navigate the given contents to the local fallback
- // Instant URL and trim the history correctly.
- void RedirectToLocalNTP(content::WebContents* contents);
-
- // Helper for OmniboxFocusChanged. Commit or discard the overlay.
- void OmniboxLostFocus(gfx::NativeView view_gaining_focus);
-
// If the active tab is an Instant search results page, sets |instant_tab_| to
// point to it. Else, deletes any existing |instant_tab_|.
void ResetInstantTab();
- // Sends theme info, omnibox bounds, etc. down to the Instant tab.
+ // Sends theme info and most visited items to the Instant tab.
void UpdateInfoForInstantTab();
// Returns the InstantService for the browser profile.
« no previous file with comments | « no previous file | chrome/browser/ui/search/instant_controller.cc » ('j') | chrome/browser/ui/search/instant_page.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698