-
Notifications
You must be signed in to change notification settings - Fork 901
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support alternate private search engine provider #310
Conversation
eb95ec2
to
ccd4b93
Compare
87ea963
to
446cf52
Compare
446cf52
to
d8f8922
Compare
private_search_engine_data.SetShortName(base::ASCIIToUTF16("DuckDuckGo")); | ||
private_search_engine_data.SetKeyword(base::ASCIIToUTF16("duckduckgo.com")); | ||
private_search_engine_data.SetURL( | ||
"https://duckduckgo.com/?q={searchTerms}&atb=v128-6_e"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I won't block on this but please fix in a follow up.
what is this for? &atb=v128-6_e
Please remove that and instead add the brave referral code of t=brave
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Please rebase and also fix the query parameter and then I'll re-approve and merge. |
Use different TemplateURLService for normal and incognito mode to set default search engine provider independently. Use duckduckgo as a default search engine provider in incognito mode. kUseAlternatePrivateSearchEngine pref is introduced to toggle alternate search engine. If it is set to false, incognito mode uses default search engine of normal mode.
Connect that button with kUseAlternatePrivateSearchEngine pref.
d8f8922
to
0bb0660
Compare
add uglifyjs-webpack-plugin as dep
Use different TemplateURLService for normal and incognito mode to set default search engine provider independently.
Use duckduckgo as a default search engine provider in incognito mode.
kUseAlternatePrivateSearchEngine pref is introduced to toggle alternate search engine.
If it is set to false, incognito mode uses default search engine of normal mode.
Otherwise, duckduckgo is used as private mode default search engine.
Close brave/brave-browser#61
Submitter Checklist:
git rebase -i
to squash commits (if needed).Test Plan:
yarn test brave_browser_tests --filter=AlternatePrivateSearchEngineTest.PrefTest
Reviewer Checklist: