Chromium Code Reviews
DescriptionRefactor SearchGeolocationService to make it testable
This refactors SearchGeolocationService to make it testable. Search engine
related functionality, which cannot easily be mocked out in unittests, is moved
into a delegate class.
A couple of other minor fixes are made:
-An IsOffTheRecord check is made into a DCHECK since the class should never be
constructed for an off the record profile.
-The CCTLD is no longer stored because it was never used.
-An extra DCHECK is added in SetDSEGeolocationSetting to ensure the setting is
only changed when Google is the current search engine.
BUG=674398
Review-Url: https://codereview.chromium.org/2637953003
Cr-Commit-Position: refs/heads/master@{#445304}
Committed: https://chromium.googlesource.com/chromium/src/+/f34fbb504afba2fa86f1dd7bbfd90e0134cbe639
Patch Set 1 #Patch Set 2 : . #Patch Set 3 : Refactor for test #
Total comments: 8
Patch Set 4 : Refactor for test #
Dependent Patchsets: Messages
Total messages: 19 (12 generated)
|
||||||||||||||||||||||||||||