Chromium Code Reviews
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. #
Messages
Total messages: 15 (9 generated)
|
||||||||||||||||||||||||||||