Commit ac1aaf96 authored by finnur's avatar finnur Committed by Commit bot

Fix WebsitePreference::compareTo.

Should not return constant when compared against object of class Preference.

BUG=450862

Review URL: https://codereview.chromium.org/875003002

Cr-Commit-Position: refs/heads/master@{#314135}
parent 554d1a97
......@@ -116,7 +116,7 @@ class WebsitePreference extends Preference implements FaviconImageCallback {
@Override
public int compareTo(Preference preference) {
if (!(preference instanceof WebsitePreference)) {
return 1;
return super.compareTo(preference);
}
WebsitePreference other = (WebsitePreference) preference;
if (mFilter.showStorageSites(mCategoryFilter)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment