How to change the default search engine?

299 views
Skip to first unread message

Radomir Stanev

unread,
Sep 27, 2018, 4:59:56 PM9/27/18
to Chromium-dev
Hello,

I'm building a mobile browser app (both iOS and Android) with chromium and my client wants me to set his search engine as the default search engine for the browser. I'm building the projects using the iOS and Android guides found on this page: https://www.chromium.org/developers/how-tos/get-the-code. I've searched a lot for a way to change the default search engine, but no luck so far. I mostly found solutions explaining how the user can change the search engine from settings one he starts the app, but that's not the goal. The goal is to have my client's search engine set by default from the beginning.

Any ideas or suggestions where in the source code I can add or change the default search engine?

Radomir Stanev

unread,
Oct 1, 2018, 1:10:24 PM10/1/18
to Chromium-dev
I found the file named prepopulated_search_engines.json in components > search_engines and I added the search engine that I want to make default. But I don't see anything there that marks which one is the default. Any ideas?

Vicky Abishek

unread,
Dec 15, 2020, 1:05:50 PM12/15/20
to Chromium-dev, Radomir Stanev
Have you found the solution for this?

I went until "SetDefaultSearchProviderID" function in components/search_engines/keyword_web_data_service.cc, couldn't find from where this function is being called. Anything you could help with?

Toptech4

unread,
Feb 14, 2023, 1:36:24 PM2/14/23
to Chromium-dev, Radomir Stanev
Have you found any solution bro how to change default search engine
Reply all
Reply to author
Forward
0 new messages