Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(724)

Issue 2938403002: Check for the default search engine being null before using. (Closed)

Created:
3 years, 6 months ago by Ted C
Modified:
3 years, 6 months ago
Reviewers:
Theresa, Peter Kasting
CC:
chromium-reviews, agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Check 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)
Ted C
PTAL pkasting - components/search_engines - Comment change only twellington - *android*
3 years, 6 months ago (2017-06-16 16:18:06 UTC) #2
Theresa
lgtm
3 years, 6 months ago (2017-06-16 16:35:55 UTC) #3
Peter Kasting
LGTM https://codereview.chromium.org/2938403002/diff/1/components/search_engines/template_url_service.h File components/search_engines/template_url_service.h (right): https://codereview.chromium.org/2938403002/diff/1/components/search_engines/template_url_service.h#newcode260 components/search_engines/template_url_service.h:260: // NOTE: This may return NULL in certain ...
3 years, 6 months ago (2017-06-16 22:51:34 UTC) #4
Ted C
https://codereview.chromium.org/2938403002/diff/1/components/search_engines/template_url_service.h File components/search_engines/template_url_service.h (right): https://codereview.chromium.org/2938403002/diff/1/components/search_engines/template_url_service.h#newcode260 components/search_engines/template_url_service.h:260: // NOTE: This may return NULL in certain circumstances ...
3 years, 6 months ago (2017-06-16 22:56:49 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2938403002/40001
3 years, 6 months ago (2017-06-16 22:57:31 UTC) #8
commit-bot: I haz the power
3 years, 6 months ago (2017-06-17 00:12:55 UTC) #11
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/9c436a9669b2a3bc5cd10d8d7548...

Powered by Google App Engine
This is Rietveld 408576698