Update docs for how to enable reader mode flags
Bug: 1041589 No-try: true Change-Id: Ib5d355bce4ba17e2da9cf26483e7de6e84495ce3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2404152 Auto-Submit: Dominic Mazzoni <dmazzoni@chromium.org> Reviewed-by: Meredith Lane <meredithl@chromium.org> Commit-Queue: Meredith Lane <meredithl@chromium.org> Cr-Commit-Position: refs/heads/master@{#805990}
This commit is contained in:

committed by
Commit Bot

parent
a10a960079
commit
ae0ad3ad97
@ -16,6 +16,15 @@ flag, ‘enable-reader-mode’. To run Chrome with Reader Mode, set the “Enabl
|
|||||||
Reader Mode” flag to “Enabled” in chrome://flags or start Chrome with
|
Reader Mode” flag to “Enabled” in chrome://flags or start Chrome with
|
||||||
--enable-feature=”ReaderMode”.
|
--enable-feature=”ReaderMode”.
|
||||||
|
|
||||||
|
There's also a flag that instead exposes a Setting; with this variant, users
|
||||||
|
need to first enable the Setting once and then they can use Reader Mode
|
||||||
|
on any supported page. Enabling this variant requires a long command-line
|
||||||
|
argument:
|
||||||
|
|
||||||
|
```
|
||||||
|
--enable-features="ReaderMode<FakeStudy" --force-fieldtrials=FakeStudy/FakeGroup --force-fieldtrial-params="FakeStudy.FakeGroup:discoverability/offer-in-settings"
|
||||||
|
```
|
||||||
|
|
||||||
### Code Locations
|
### Code Locations
|
||||||
|
|
||||||
Most of Reader Mode code is in components/dom_distiller (see the
|
Most of Reader Mode code is in components/dom_distiller (see the
|
||||||
@ -164,4 +173,4 @@ distilled page.
|
|||||||
Pages are loaded by
|
Pages are loaded by
|
||||||
[DomDistillerViewerSource](https://source.chromium.org/chromium/chromium/src/+/master:components/dom_distiller/content/browser/dom_distiller_viewer_source.h),
|
[DomDistillerViewerSource](https://source.chromium.org/chromium/chromium/src/+/master:components/dom_distiller/content/browser/dom_distiller_viewer_source.h),
|
||||||
which serves the HTML and resources for viewing pages. After the DOM is
|
which serves the HTML and resources for viewing pages. After the DOM is
|
||||||
initially loaded, the contents are populated via Javascript.
|
initially loaded, the contents are populated via Javascript.
|
||||||
|
Reference in New Issue
Block a user