| Index: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
|
| diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
|
| index 974f69353e715413a06e07cd2a46528d41c74b49..6903b9b1d87b00670828b9d377b69d6bcf613a64 100644
|
| --- a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
|
| +++ b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
|
| @@ -2944,6 +2944,12 @@ public class ContentViewCore implements
|
| // @TargetApi(Build.VERSION_CODES.M) TODO(sgurun) add method document once API is public
|
| // crbug/512264
|
| public void onProvideVirtualStructure(final ViewStructure structure) {
|
| + // Do not collect accessibility tree in incognito mode
|
| + if (getWebContents().isIncognito()) {
|
| + structure.setChildCount(0);
|
| + return;
|
| + }
|
| +
|
| structure.setChildCount(1);
|
| final ViewStructure viewRoot = structure.asyncNewChild(0);
|
| getWebContents().requestAccessibilitySnapshot(
|
|
|