From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Mon, 17 Jun 2019 12:03:52 -0400 Subject: [PATCH] disable search provider logo --- .../android/template_url_service_android.cc | 23 +------------------ 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/components/search_engines/android/template_url_service_android.cc b/components/search_engines/android/template_url_service_android.cc index 1cc492a695a59..75b1780f86f46 100644 --- a/components/search_engines/android/template_url_service_android.cc +++ b/components/search_engines/android/template_url_service_android.cc @@ -103,28 +103,7 @@ jboolean TemplateUrlServiceAndroid::IsSearchByImageAvailable( jboolean TemplateUrlServiceAndroid::DoesDefaultSearchEngineHaveLogo( JNIEnv* env, const JavaParamRef& obj) { - // |kSearchProviderLogoURL| applies to all search engines (Google or - // third-party). - if (base::CommandLine::ForCurrentProcess()->HasSwitch( - search_provider_logos::switches::kSearchProviderLogoURL)) { - return true; - } - - // Google always has a logo. - if (IsDefaultSearchEngineGoogle(env, obj)) - return true; - - // Third-party search engines can have a doodle specified via the command - // line, or a static logo or doodle from the TemplateURLService. - if (base::CommandLine::ForCurrentProcess()->HasSwitch( - search_provider_logos::switches::kThirdPartyDoodleURL)) { - return true; - } - const TemplateURL* default_search_provider = - template_url_service_->GetDefaultSearchProvider(); - return default_search_provider && - (default_search_provider->doodle_url().is_valid() || - default_search_provider->logo_url().is_valid()); + return false; } jboolean TemplateUrlServiceAndroid::IsDefaultSearchEngineGoogle(