Home
last modified time | relevance | path

Searched refs:default_provider (Results 1 – 13 of 13) sorted by relevance

/external/chromium_org/chrome/browser/search_engines/
Dtemplate_url_service_android.cc145 const TemplateURL* default_provider = in GetUrlForSearchQuery() local
151 if (default_provider && in GetUrlForSearchQuery()
152 default_provider->url_ref().SupportsReplacement( in GetUrlForSearchQuery()
155 url = default_provider->url_ref().ReplaceSearchTerms( in GetUrlForSearchQuery()
185 TemplateURL* default_provider = in ReplaceSearchTermsInUrl() local
191 if (default_provider && !query.empty()) { in ReplaceSearchTermsInUrl()
192 bool refined_query = default_provider->ReplaceSearchTermsInURL( in ReplaceSearchTermsInUrl()
Dsearch_provider_install_data.h70 TemplateURL* default_provider);
Dsearch_provider_install_data.cc263 TemplateURL* default_provider) { in OnTemplateURLsLoaded() argument
271 SetDefault(default_provider); in OnTemplateURLsLoaded()
/external/chromium_org/chrome/browser/extensions/api/settings_overrides/
Dsettings_overrides_browsertest.cc66 TemplateURL* default_provider = url_service->GetDefaultSearchProvider(); in IN_PROC_BROWSER_TEST_F() local
67 ASSERT_TRUE(default_provider); in IN_PROC_BROWSER_TEST_F()
68 EXPECT_EQ(TemplateURL::NORMAL, default_provider->GetType()); in IN_PROC_BROWSER_TEST_F()
111 EXPECT_EQ(default_provider->new_tab_url(), extension_provider->new_tab_url()); in IN_PROC_BROWSER_TEST_F()
119 EXPECT_EQ(default_provider, url_service->GetDefaultSearchProvider()); in IN_PROC_BROWSER_TEST_F()
/external/chromium_org/chrome/browser/autocomplete/
Dzero_suggest_provider.cc107 const TemplateURL* default_provider = in Start() local
109 if (default_provider == NULL) in Start()
114 GURL suggest_url(default_provider->suggestions_url_ref().ReplaceSearchTerms( in Start()
120 if (CanSendURL(input.current_url(), suggest_url, default_provider, in Start()
126 suggest_url = GURL(default_provider->suggestions_url_ref(). in Start()
346 const TemplateURL* default_provider = in ConvertResultsToAutocompleteMatches() local
349 if (default_provider == NULL || !default_provider->SupportsReplacement( in ConvertResultsToAutocompleteMatches()
/external/chromium_org/components/omnibox/
Dsearch_provider.h108 bool equal(const base::string16& default_provider, in equal() argument
110 return (default_provider == default_provider_) && in equal()
115 void set(const base::string16& default_provider, in set() argument
117 default_provider_ = default_provider; in set()
122 const base::string16& default_provider() const { return default_provider_; } in default_provider() function
Dsearch_provider.cc219 const TemplateURL* default_provider = model->GetDefaultSearchProvider(); in Start() local
220 if (default_provider && in Start()
221 !default_provider->SupportsReplacement(model->search_terms_data())) in Start()
222 default_provider = NULL; in Start()
224 if (keyword_provider == default_provider) in Start()
225 default_provider = NULL; // No use in querying the same provider twice. in Start()
227 if (!default_provider && !keyword_provider) { in Start()
235 base::string16 default_provider_keyword(default_provider ? in Start()
236 default_provider->keyword() : base::string16()); in Start()
251 if (default_provider) { in Start()
[all …]
/external/chromium_org/components/search_engines/
Dutil.cc22 const TemplateURL* const default_provider = in GetDefaultSearchEngineName() local
24 if (!default_provider) { in GetDefaultSearchEngineName()
30 return default_provider->short_name(); in GetDefaultSearchEngineName()
36 const TemplateURL* default_provider = service->GetDefaultSearchProvider(); in GetDefaultSearchURLForSearchTerms() local
37 if (!default_provider) in GetDefaultSearchURLForSearchTerms()
39 const TemplateURLRef& search_url = default_provider->url_ref(); in GetDefaultSearchURLForSearchTerms()
Dtemplate_url_service.cc726 TemplateURL* default_provider = GetDefaultSearchProvider(); in IsSearchResultsPageFromDefaultSearchProvider() local
727 return default_provider && in IsSearchResultsPageFromDefaultSearchProvider()
728 default_provider->IsSearchURL(url, search_terms_data()); in IsSearchResultsPageFromDefaultSearchProvider()
/external/chromium_org/chrome/browser/search/
Dlocal_ntp_source.cc83 const TemplateURL* default_provider = in DefaultSearchProviderIsGoogle() local
85 return default_provider && in DefaultSearchProviderIsGoogle()
87 *default_provider, template_url_service->search_terms_data()) == in DefaultSearchProviderIsGoogle()
/external/chromium_org/chrome/browser/ui/tab_contents/
Dcore_tab_helper.cc216 const TemplateURL* const default_provider = in OnRequestThumbnailForContextNodeACK() local
218 if (!default_provider) in OnRequestThumbnailForContextNodeACK()
238 GURL result(default_provider->image_url_ref().ReplaceSearchTerms( in OnRequestThumbnailForContextNodeACK()
/external/chromium_org/chrome/browser/renderer_context_menu/
Drender_view_context_menu.cc702 const TemplateURL* const default_provider = in AppendSearchWebForImageItems() local
704 if (params_.has_image_contents && default_provider && in AppendSearchWebForImageItems()
705 !default_provider->image_url().empty() && in AppendSearchWebForImageItems()
706 default_provider->image_url_ref().IsValid(service->search_terms_data())) { in AppendSearchWebForImageItems()
710 default_provider->short_name())); in AppendSearchWebForImageItems()
862 const TemplateURL* const default_provider = in AppendSearchProvider() local
865 if (!default_provider) in AppendSearchProvider()
870 default_provider->short_name(), in AppendSearchProvider()
/external/chromium_org/chrome/browser/content_settings/
Dhost_content_settings_map.cc95 content_settings::ObservableProvider* default_provider = in HostContentSettingsMap() local
97 default_provider->AddObserver(this); in HostContentSettingsMap()
98 content_settings_providers_[DEFAULT_PROVIDER] = default_provider; in HostContentSettingsMap()