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

Unified Diff: chrome/browser/ui/toolbar/test_toolbar_model.h

Issue 14259008: Instant Extended: Add prominent search term support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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/toolbar/test_toolbar_model.h
diff --git a/chrome/browser/ui/toolbar/test_toolbar_model.h b/chrome/browser/ui/toolbar/test_toolbar_model.h
index 2b7031a7b1b5c251ba38556e9c9791fa3318a3be..291d1a3b0ec069773f9678e11347d92c488d1567 100644
--- a/chrome/browser/ui/toolbar/test_toolbar_model.h
+++ b/chrome/browser/ui/toolbar/test_toolbar_model.h
@@ -20,7 +20,8 @@ class TestToolbarModel : public ToolbarModel {
bool display_search_urls_as_search_terms) const OVERRIDE;
virtual string16 GetCorpusNameForMobile() const OVERRIDE;
virtual GURL GetURL() const OVERRIDE;
- virtual bool WouldReplaceSearchURLWithSearchTerms() const OVERRIDE;
+ virtual SearchTermType GetSearchTermType() const OVERRIDE;
+ virtual void SetIsProminentSearchTermUISupported(bool value) OVERRIDE;
virtual SecurityLevel GetSecurityLevel() const OVERRIDE;
virtual int GetIcon() const OVERRIDE;
virtual string16 GetEVCertName() const OVERRIDE;
@@ -30,8 +31,8 @@ class TestToolbarModel : public ToolbarModel {
void set_text(const string16& text) { text_ = text; }
void set_url(const GURL& url) { url_ = url;}
- void set_replace_search_url_with_search_terms(bool should_replace_url) {
- should_replace_url_ = should_replace_url;
+ void set_search_term_type(SearchTermType type) {
+ search_term_type_ = type;
}
void set_security_level(SecurityLevel security_level) {
security_level_ = security_level;
@@ -47,7 +48,7 @@ class TestToolbarModel : public ToolbarModel {
private:
string16 text_;
GURL url_;
- bool should_replace_url_;
+ SearchTermType search_term_type_;
SecurityLevel security_level_;
int icon_;
string16 ev_cert_name_;

Powered by Google App Engine
This is Rietveld 408576698