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

Issue 2729253002: [Android] Fix a custom search engine bounces when it selected and unselected as default engine (Closed)

Created:
3 years, 9 months ago by ltian
Modified:
3 years, 9 months ago
Reviewers:
Ted C
CC:
chromium-reviews
Target Ref:
refs/pending/branch-heads/2987
Project:
chromium
Visibility:
Public.

Description

[Android] Fix a custom search engine bounces when it selected and unselected as default engine When there are mutliple custom search engines displayed on setting page, selecting and unselecting all except the top one will make them bounce between default list and custom engine list. The right behaivor should be the selected custom engine should remain in the same place and be updated next time loading the setting page. It is caused using their indexes to decide whether two engines are the same. However, selecting/unselecting a custom engine will make Chrome reorder the engine list which changes the selected/unselected one's index and forces Chrome to refresh the list on Android. To fix it, index of a search engine should not be used to decide whether two engines are the same. BUG=692343 NOTRY=true NOPRESUBMIT=true Review-Url: https://codereview.chromium.org/2691033007 Cr-Commit-Position: refs/heads/master@{#451890} (cherry picked from commit 06aa457920d30616cc4c47c23057714694e3b3a7) Review-Url: https://codereview.chromium.org/2729253002 Cr-Commit-Position: refs/branch-heads/2987@{#757} Cr-Branched-From: ad51088c0e8776e8dcd963dbe752c4035ba6dab6-refs/heads/master@{#444943} Committed: https://chromium.googlesource.com/chromium/src/+/70335e0880ba8cbe86aad7e3e53965ec23c7c9b2

Patch Set 1 #

Patch Set 2 : Add NOTRY=true and NOPRESUBMIT=true for commit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -29 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/preferences/SearchEngineAdapter.java View 4 chunks +46 lines, -27 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/search_engines/TemplateUrlService.java View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 15 (9 generated)
ltian
tedchoc@chromium.org: could you help to lgtm this cl? Thanks!
3 years, 9 months ago (2017-03-03 20:09:58 UTC) #2
Ted C
lgtm
3 years, 9 months ago (2017-03-03 20:10:30 UTC) #3
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/2729253002/1
3 years, 9 months ago (2017-03-03 20:14:31 UTC) #5
commit-bot: I haz the power
CLs for remote refs other than refs/heads/master must contain NOTRY=true and NOPRESUBMIT=true in order for ...
3 years, 9 months ago (2017-03-03 20:14:32 UTC) #7
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/2729253002/20001
3 years, 9 months ago (2017-03-03 20:38:04 UTC) #12
commit-bot: I haz the power
3 years, 9 months ago (2017-03-03 20:42:48 UTC) #15
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/70335e0880ba8cbe86aad7e3e539...

Powered by Google App Engine
This is Rietveld 408576698