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

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

Issue 2757863002: SearchTabHelper: Find browser/window instead of having them passed in (Closed)
Patch Set: Created 3 years, 9 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/browser.cc ('k') | chrome/browser/ui/search/search_tab_helper.cc » ('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.h
diff --git a/chrome/browser/ui/search/search_tab_helper.h b/chrome/browser/ui/search/search_tab_helper.h
index fea025a9980bc43cbb1cb78017c2ccd420d180ff..e91f85d1f5004bd88949b6ba0491fcb49fb76d05 100644
--- a/chrome/browser/ui/search/search_tab_helper.h
+++ b/chrome/browser/ui/search/search_tab_helper.h
@@ -27,7 +27,6 @@ class WebContents;
struct LoadCommittedDetails;
}
-class BrowserWindow;
class GURL;
class InstantService;
class InstantTabTest;
@@ -75,10 +74,6 @@ class SearchTabHelper : public content::WebContentsObserver,
void Submit(const base::string16& text,
const EmbeddedSearchRequestParams& params);
- // Called when the tab corresponding to |this| instance is attached to a
- // browser window.
- void OnTabAttachedToWindow(BrowserWindow* window);
-
// Called when the tab corresponding to |this| instance is activated.
void OnTabActivated();
@@ -172,6 +167,8 @@ class SearchTabHelper : public content::WebContentsObserver,
// received.
void DetermineIfPageSupportsInstant();
+ OmniboxView* GetOmniboxView() const;
Peter Kasting 2017/03/17 21:16:13 Nit: const methods should not return non-const poi
Marc Treib 2017/03/20 14:52:31 Done (made const and non-const overloads).
+
Profile* profile() const;
// Returns whether input is in progress, i.e. if the omnibox has focus and the
@@ -189,8 +186,6 @@ class SearchTabHelper : public content::WebContentsObserver,
InstantService* instant_service_;
- OmniboxView* omnibox_view_;
-
DISALLOW_COPY_AND_ASSIGN(SearchTabHelper);
};
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/search/search_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698