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

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: nits 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_browsertest.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..1dfba428ee96d894c3e85cb7f9a4f8ead63d5919 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,9 @@ class SearchTabHelper : public content::WebContentsObserver,
// received.
void DetermineIfPageSupportsInstant();
+ OmniboxView* GetOmniboxView();
+ const OmniboxView* GetOmniboxView() const;
+
Profile* profile() const;
// Returns whether input is in progress, i.e. if the omnibox has focus and the
@@ -189,8 +187,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_browsertest.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