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

Unified Diff: components/omnibox/browser/keyword_provider.cc

Issue 2347973002: Enable Chrome to tweak search engines for some locales (Closed)
Patch Set: fix compile Created 4 years, 3 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: components/omnibox/browser/keyword_provider.cc
diff --git a/components/omnibox/browser/keyword_provider.cc b/components/omnibox/browser/keyword_provider.cc
index f04fac2699f09e47cfac4f70cf0dab6c2bf71864..d5c527ea3a59ba7997462c7324337a51ae84c245 100644
--- a/components/omnibox/browser/keyword_provider.cc
+++ b/components/omnibox/browser/keyword_provider.cc
@@ -188,7 +188,7 @@ base::string16 KeywordProvider::GetKeywordForText(
return base::string16();
// Don't provide a keyword for inactive/disabled extension keywords.
- if ((template_url->GetType() == TemplateURL::OMNIBOX_API_EXTENSION) &&
+ if ((template_url->type() == TemplateURL::OMNIBOX_API_EXTENSION) &&
extensions_delegate_ &&
!extensions_delegate_->IsEnabledExtension(template_url->GetExtensionId()))
return base::string16();
@@ -265,7 +265,7 @@ void KeywordProvider::Start(const AutocompleteInput& input,
// Prune any extension keywords that are disallowed in incognito mode (if
// we're incognito), or disabled.
- if (template_url->GetType() == TemplateURL::OMNIBOX_API_EXTENSION &&
+ if (template_url->type() == TemplateURL::OMNIBOX_API_EXTENSION &&
extensions_delegate_ &&
!extensions_delegate_->IsEnabledExtension(
template_url->GetExtensionId())) {
@@ -296,7 +296,7 @@ void KeywordProvider::Start(const AutocompleteInput& input,
const TemplateURL* template_url = matches.front().first;
const size_t meaningful_keyword_length = matches.front().second;
const bool is_extension_keyword =
- template_url->GetType() == TemplateURL::OMNIBOX_API_EXTENSION;
+ template_url->type() == TemplateURL::OMNIBOX_API_EXTENSION;
// Only create an exact match if |remaining_input| is empty or if
// this is an extension keyword. If |remaining_input| is a
@@ -456,7 +456,7 @@ void KeywordProvider::FillInURLAndContents(
// entered.
if (element_ref.SupportsReplacement(
GetTemplateURLService()->search_terms_data()) &&
- (element->GetType() != TemplateURL::OMNIBOX_API_EXTENSION)) {
+ (element->type() != TemplateURL::OMNIBOX_API_EXTENSION)) {
// No query input; return a generic, no-destination placeholder.
match->contents.assign(
l10n_util::GetStringUTF16(IDS_EMPTY_KEYWORD_VALUE));

Powered by Google App Engine
This is Rietveld 408576698