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

Issue 2810973003: Remove maybeCreatePermissionForDefaultSearchEngine and related code (Closed)

Created:
3 years, 8 months ago by benwells
Modified:
3 years, 8 months ago
Reviewers:
Finnur
CC:
chromium-reviews, agrieve+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove maybeCreatePermissionForDefaultSearchEngine and related code The function maybeCreatePermissionForDefaultSearchEngine was introduced during development of a feature for M43, but all calls to the function were removed in the same milestone. In more detail, the function was introduced in revision 493f0ea4a1752dcdd355323426007c9077a6e84b, which was in M43. The last call to the function was removed in revision ca5a45d777d9f6ca14a4e41d262268cc5139aace, which was merged into M43. See https://crbug.com/467798 for more details / CLs. One of the side effects of the function is to set a preference LOCATION_AUTO_ALLOWED when setting permissions. This preference is checked in another function, and if present the permission is cleared. As the function was never in a released version, this preference can't be set, so the related code checking this preference can also be removed. This further allows a boolean parameter to be removed from another function, as the parameter is always true except for when it was called by the related code that is being removed. I'm removing all of this now as it adds confusing complexity to fixing a bug I'm currently looking at. BUG=703516 Review-Url: https://codereview.chromium.org/2810973003 Cr-Commit-Position: refs/heads/master@{#463921} Committed: https://chromium.googlesource.com/chromium/src/+/b2197feae09d55e93d632fef6292729b1655ef1a

Patch Set 1 #

Patch Set 2 : Remove more of the stuff #

Total comments: 2

Patch Set 3 : Remove strign #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -64 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java View 1 2 3 chunks +0 lines, -28 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/SearchEngineAdapter.java View 1 6 chunks +15 lines, -36 lines 0 comments Download

Messages

Total messages: 25 (18 generated)
benwells
3 years, 8 months ago (2017-04-11 09:42:50 UTC) #9
Finnur
The CL description does not accurately reflect what is being removed. It describes one unused ...
3 years, 8 months ago (2017-04-11 10:21:42 UTC) #10
benwells
On 2017/04/11 10:21:42, Finnur wrote: > The CL description does not accurately reflect what is ...
3 years, 8 months ago (2017-04-11 11:02:55 UTC) #13
benwells
https://codereview.chromium.org/2810973003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java (right): https://codereview.chromium.org/2810973003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java#newcode59 chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java:59: public static final String LOCATION_AUTO_ALLOWED = "search_engine_location_auto_allowed"; I just ...
3 years, 8 months ago (2017-04-11 11:03:16 UTC) #14
Finnur
Thanks for the explanation. LGTM. https://codereview.chromium.org/2810973003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java (right): https://codereview.chromium.org/2810973003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java#newcode59 chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java:59: public static final String ...
3 years, 8 months ago (2017-04-11 14:17:47 UTC) #15
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/2810973003/40001
3 years, 8 months ago (2017-04-12 03:25:38 UTC) #22
commit-bot: I haz the power
3 years, 8 months ago (2017-04-12 03:35:57 UTC) #25
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/b2197feae09d55e93d632fef6292...

Powered by Google App Engine
This is Rietveld 408576698