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

Issue 2060423003: Watch for RenderFrameHost switch in distillability (Closed)

Created:
4 years, 6 months ago by mdjones
Modified:
4 years, 5 months ago
Reviewers:
gone, wychen
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Watch for RenderFrameHost switch in distillability When navigating to/from a native page, the RenderFrameHost would switch and the distillability service would lose connection. This would cause Reader Mode to be broken for a few navigations. The DistillabilityDriver now listens for this switch and updates the service accordingly. BUG=615327 Committed: https://crrev.com/acf19900a4a4dafcbac2ef2258522abf5f81ba9c Cr-Commit-Position: refs/heads/master@{#402245}

Patch Set 1 #

Patch Set 2 : add test #

Total comments: 6

Patch Set 3 : remove unnecessary code #

Patch Set 4 : rebase on mojo api change #

Patch Set 5 : Add VisibleForTesting to ChromeActivity #

Messages

Total messages: 25 (10 generated)
mdjones
ptal
4 years, 6 months ago (2016-06-13 21:24:53 UTC) #2
wychen
Looks reasonable. I think it might be good to also add a test to src/chrome/browser/dom_distiller/distillable_page_utils_browsertest.cc ...
4 years, 6 months ago (2016-06-20 18:34:22 UTC) #3
mdjones
On 2016/06/20 18:34:22, wychen wrote: > Looks reasonable. I think it might be good to ...
4 years, 6 months ago (2016-06-20 23:59:33 UTC) #4
wychen
https://codereview.chromium.org/2060423003/diff/20001/chrome/android/javatests/src/org/chromium/chrome/browser/dom_distiller/DistillabilityServiceTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/dom_distiller/DistillabilityServiceTest.java (right): https://codereview.chromium.org/2060423003/diff/20001/chrome/android/javatests/src/org/chromium/chrome/browser/dom_distiller/DistillabilityServiceTest.java#newcode24 chrome/android/javatests/src/org/chromium/chrome/browser/dom_distiller/DistillabilityServiceTest.java:24: * Tests related to the Tab's theme color. This ...
4 years, 6 months ago (2016-06-23 00:51:28 UTC) #5
mdjones
https://codereview.chromium.org/2060423003/diff/20001/chrome/android/javatests/src/org/chromium/chrome/browser/dom_distiller/DistillabilityServiceTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/dom_distiller/DistillabilityServiceTest.java (right): https://codereview.chromium.org/2060423003/diff/20001/chrome/android/javatests/src/org/chromium/chrome/browser/dom_distiller/DistillabilityServiceTest.java#newcode24 chrome/android/javatests/src/org/chromium/chrome/browser/dom_distiller/DistillabilityServiceTest.java:24: * Tests related to the Tab's theme color. On ...
4 years, 6 months ago (2016-06-23 16:41:19 UTC) #6
wychen
lgtm
4 years, 6 months ago (2016-06-23 17:17:50 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2060423003/40001
4 years, 6 months ago (2016-06-23 17:22:14 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/25728)
4 years, 6 months ago (2016-06-23 17:24:13 UTC) #11
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/2060423003/60001
4 years, 6 months ago (2016-06-24 15:49:47 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/93371)
4 years, 6 months ago (2016-06-24 16:57:19 UTC) #16
mdjones
+dfalcantara for ChromeActivity.java
4 years, 5 months ago (2016-06-27 16:48:27 UTC) #18
gone
lgtm
4 years, 5 months ago (2016-06-27 17:10:17 UTC) #19
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/2060423003/80001
4 years, 5 months ago (2016-06-27 17:11:58 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 5 months ago (2016-06-27 19:01:23 UTC) #23
commit-bot: I haz the power
4 years, 5 months ago (2016-06-27 19:04:14 UTC) #25
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/acf19900a4a4dafcbac2ef2258522abf5f81ba9c
Cr-Commit-Position: refs/heads/master@{#402245}

Powered by Google App Engine
This is Rietveld 408576698