diff options
| author | 2016-01-07 21:36:06 +0000 | |
|---|---|---|
| committer | 2016-01-07 21:36:06 +0000 | |
| commit | 167a623c45575b33166bc3a02d5f68243e09cf07 (patch) | |
| tree | b2914f6d26a58dffa3e1d025a193e3ef81227609 | |
| parent | 44d86599fb5aab361a0a6b7c65e9d71c12e713eb (diff) | |
| parent | a469218d0730f870bb10702933ac8e11b2ad5d02 (diff) | |
Merge "Document WebView Metrics opt out API"
| -rw-r--r-- | core/java/android/webkit/WebView.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index 7443bce5e4d0..0f58ba3c002c 100644 --- a/core/java/android/webkit/WebView.java +++ b/core/java/android/webkit/WebView.java @@ -280,6 +280,23 @@ import java.util.Map; * instead. * </p> * + * <h3>Metrics</h3> + * + * <p> + * WebView may upload anonymous diagnostic data to Google when the user has consented. This data + * helps Google improve WebView. Data is collected on a per-app basis for each app which has + * instantiated a WebView. An individual app can opt out of this feature by putting the following + * tag in its manifest: + * </p> + * <pre> + * <meta-data android:name="android.webkit.WebView.MetricsOptOut" + * android:value="true" /> + * </pre> + * <p> + * Data will only be uploaded for a given app if the user has consented AND the app has not opted + * out. + * </p> + * */ // Implementation notes. // The WebView is a thin API class that delegates its public API to a backend WebViewProvider |