|
|
Created:
4 years, 11 months ago by knn Modified:
4 years, 11 months ago Reviewers:
Bernhard Bauer CC:
chromium-reviews Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionFix crash when icons for popular sites are loaded before the suggestions.
BUG=579712
Committed: https://crrev.com/12a62b08d77fb5cdac1ddd754b1a6a81875e92fd
Cr-Commit-Position: refs/heads/master@{#370737}
Patch Set 1 #
Total comments: 3
Patch Set 2 : #Messages
Total messages: 17 (6 generated)
knn@chromium.org changed reviewers: + bauerb@chromium.org
PTAL. Thanks!
lgtm https://codereview.chromium.org/1613933002/diff/1/chrome/android/java/src/org... File chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java (right): https://codereview.chromium.org/1613933002/diff/1/chrome/android/java/src/org... chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java:983: public void onIconUpdated(final String url) { Alternatively, you could return here if |mMostVisitedItems| is null, which would make the contract a little simpler.
Thanks for the review! https://codereview.chromium.org/1613933002/diff/1/chrome/android/java/src/org... File chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java (right): https://codereview.chromium.org/1613933002/diff/1/chrome/android/java/src/org... chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java:983: public void onIconUpdated(final String url) { On 2016/01/21 16:16:54, Bernhard Bauer wrote: > Alternatively, you could return here if |mMostVisitedItems| is null, which would > make the contract a little simpler. Yeah it is slightly better, I chose this as it makes it easier to cherry-pick to m48 where there are multiple onIconUpdated calls.
The CQ bit was checked by knn@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1613933002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1613933002/1
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
https://codereview.chromium.org/1613933002/diff/1/chrome/android/java/src/org... File chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java (right): https://codereview.chromium.org/1613933002/diff/1/chrome/android/java/src/org... chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java:983: public void onIconUpdated(final String url) { On 2016/01/21 16:56:01, knn wrote: > On 2016/01/21 16:16:54, Bernhard Bauer wrote: > > Alternatively, you could return here if |mMostVisitedItems| is null, which > would > > make the contract a little simpler. > > Yeah it is slightly better, I chose this as it makes it easier to cherry-pick to > m48 where there are multiple onIconUpdated calls. …and we only want to do this for one of them? Or are you agreeing with my suggestion, and I'm just missing an additional patch set?
On 2016/01/21 17:43:28, Bernhard Bauer wrote: > https://codereview.chromium.org/1613933002/diff/1/chrome/android/java/src/org... > File chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java > (right): > > https://codereview.chromium.org/1613933002/diff/1/chrome/android/java/src/org... > chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java:983: > public void onIconUpdated(final String url) { > On 2016/01/21 16:56:01, knn wrote: > > On 2016/01/21 16:16:54, Bernhard Bauer wrote: > > > Alternatively, you could return here if |mMostVisitedItems| is null, which > > would > > > make the contract a little simpler. > > > > Yeah it is slightly better, I chose this as it makes it easier to cherry-pick > to > > m48 where there are multiple onIconUpdated calls. > > …and we only want to do this for one of them? Or are you agreeing with my > suggestion, and I'm just missing an additional patch set? We want to do it for both of them (Icon + Thumbnail NTP even though one is deprecated). I was just being lazy with the cherry-pick, let me upload a fresh patch.
The CQ bit was checked by knn@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from bauerb@chromium.org Link to the patchset: https://codereview.chromium.org/1613933002/#ps20001 (title: " ")
On 2016/01/21 18:01:09, knn wrote: > On 2016/01/21 17:43:28, Bernhard Bauer wrote: > > > https://codereview.chromium.org/1613933002/diff/1/chrome/android/java/src/org... > > File > chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java > > (right): > > > > > https://codereview.chromium.org/1613933002/diff/1/chrome/android/java/src/org... > > > chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java:983: > > public void onIconUpdated(final String url) { > > On 2016/01/21 16:56:01, knn wrote: > > > On 2016/01/21 16:16:54, Bernhard Bauer wrote: > > > > Alternatively, you could return here if |mMostVisitedItems| is null, which > > > would > > > > make the contract a little simpler. > > > > > > Yeah it is slightly better, I chose this as it makes it easier to > cherry-pick > > to > > > m48 where there are multiple onIconUpdated calls. > > > > …and we only want to do this for one of them? Or are you agreeing with my > > suggestion, and I'm just missing an additional patch set? > > We want to do it for both of them (Icon + Thumbnail NTP even though one is > deprecated). > I was just being lazy with the cherry-pick, let me upload a fresh patch. Gotcha, no worries.
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1613933002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1613933002/20001
Message was sent while issue was closed.
Committed patchset #2 (id:20001)
Message was sent while issue was closed.
Description was changed from ========== Fix crash when icons for popular sites are loaded before the suggestions. BUG=579712 ========== to ========== Fix crash when icons for popular sites are loaded before the suggestions. BUG=579712 Committed: https://crrev.com/12a62b08d77fb5cdac1ddd754b1a6a81875e92fd Cr-Commit-Position: refs/heads/master@{#370737} ==========
Message was sent while issue was closed.
Patchset 2 (id:??) landed as https://crrev.com/12a62b08d77fb5cdac1ddd754b1a6a81875e92fd Cr-Commit-Position: refs/heads/master@{#370737} |