DescriptionPull the Activity context from WindowAndroid if possible
WebView uses ContentViewCore's context for displaying dialogs and
wraps it at construction time. This change makes sure that if there
is an activity that can be reached through WindowAndroid, we use
that as the context inside ColorChooser. Also make sure if there is no
activity, we
dont attempt to create a color chooser and try to show it.
Update ActivityWindowAndroid to take a Context type so
that in Android WebView, the activity context can remain wrapped.
This change is a combination of
https://codereview.chromium.org/1419843002 and
https://codereview.chromium.org/1572913003 and in general changes
WindowAndroid behavior so that a Context reference is kept rather than
an Activity reference and makes it possible to use a ContextWrapper.
BUG=550410, 570429
R=boliu@chromium.org
Committed: https://chromium.googlesource.com/chromium/src/+/e39ed6c6b763d7d3c7b70f68a92054449da15f30
Patch Set 1 #Messages
Total messages: 5 (2 generated)
|