Android TemplateUrlService moved to //components.
The only method we were overriding - doesDefaultSearchEngineHaveLogo has moved to the native side, so removed our java override and added a chromium_src override. Chromium change: https://chromium.googlesource.com/chromium/src/+/f517f7d559cb1fcde37dced14cfde71312adaeab commit f517f7d559cb1fcde37dced14cfde71312adaeab Author: Peter Wen <wnwen@chromium.org> Date: Thu Jun 13 15:28:27 2019 +0000 Move Android TemplateUrlService to //components The code that TemplateUrlServiceAndroid depends on has been moved to //components/search_engines. The only piece that is still required is Profile, which is now supplied by TemplateUrlServiceFactory. Change-Id: Ic16991570fb5332d7f7b99b09c324021f7a440f0 Bug: 968156
This commit is contained in:
@@ -1,19 +0,0 @@
|
||||
/* Copyright (c) 2019 The Brave Authors. All rights reserved.
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.chromium.chrome.browser.search_engines;
|
||||
|
||||
import org.chromium.chrome.browser.search_engines.TemplateUrlService;
|
||||
|
||||
public class BraveTemplateUrlService extends TemplateUrlService {
|
||||
@Override
|
||||
public boolean doesDefaultSearchEngineHaveLogo() {
|
||||
if (isDefaultSearchEngineGoogle()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return super.doesDefaultSearchEngineHaveLogo();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user