Commit 7d9dd5f4 authored by Jan Lamecki's avatar Jan Lamecki Committed by Commit Bot

Make WindowAndroid#getWindowToken protected (was private).

This will be used in ChromeCast to override window token used by
content/public/android/java/src/org/chromium/content/browser/androidoverlay.

Bug: None.
Change-Id: Ibc5a97c24acfad1d8ab8aef69ec8b821abc71854
Reviewed-on: https://chromium-review.googlesource.com/c/1333727
Commit-Queue: Jan Lamecki <jachor@google.com>
Reviewed-by: default avatarBo <boliu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#609365}
parent 44ba3db4
...@@ -773,7 +773,7 @@ public class WindowAndroid implements AndroidPermissionDelegate { ...@@ -773,7 +773,7 @@ public class WindowAndroid implements AndroidPermissionDelegate {
* Return the current window token, or null. * Return the current window token, or null.
*/ */
@CalledByNative @CalledByNative
private IBinder getWindowToken() { protected IBinder getWindowToken() {
Activity activity = activityFromContext(mContextRef.get()); Activity activity = activityFromContext(mContextRef.get());
if (activity == null) return null; if (activity == null) return null;
Window window = activity.getWindow(); Window window = activity.getWindow();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment