Chromium Code Reviews
DescriptionCheck for the default search engine being null before using.
It is valid for the DSE to be null if DefaultSearchProviderEnabled
is false in the policy (see chrome://policy).
Check and appropriately handle null in all cases.
TEST=1.) Set "DefaultSearchProviderEnabled": false
2.) Go to settings,
3.) search engine marked as managed, disabled, and empty
TEST=1.) Set "DefaultSearchProviderEnabled": true,
"DefaultSearchProviderSearchURL": "http://www.google.com/?q={searchTerms}",
"DefaultSearchProviderKeyword": "google"
2.) Go to settings
3.) search engine marked as managed, disabled, show google
BUG=720504
Review-Url: https://codereview.chromium.org/2938403002
Cr-Commit-Position: refs/heads/master@{#480234}
Committed: https://chromium.googlesource.com/chromium/src/+/9c436a9669b2a3bc5cd10d8d75488715c8bf86aa
Patch Set 1 #
Total comments: 4
Patch Set 2 : Rebase #Patch Set 3 : Update comments #
Messages
Total messages: 11 (5 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||