| Index: android_webview/browser/aw_content_browser_client.cc
|
| diff --git a/android_webview/browser/aw_content_browser_client.cc b/android_webview/browser/aw_content_browser_client.cc
|
| index 7c3dc6590991f180d19518ec90060fffd9ba3880..bb48653559df981b6098b6e46b6fc50445abdfc9 100644
|
| --- a/android_webview/browser/aw_content_browser_client.cc
|
| +++ b/android_webview/browser/aw_content_browser_client.cc
|
| @@ -386,6 +386,25 @@ void AwContentBrowserClient::ShowDesktopNotification(
|
| NOTREACHED() << "Android WebView does not support desktop notifications.";
|
| }
|
|
|
| +void AwContentBrowserClient::RequestGeolocationPermission(
|
| + content::WebContents* web_contents,
|
| + int bridge_id,
|
| + const GURL& requesting_frame,
|
| + bool user_gesture,
|
| + base::Callback<void(bool)> result_callback,
|
| + base::Closure* cancel_callback) {
|
| + AwContentsClientBridgeBase* client =
|
| + AwContentsClientBridgeBase::FromWebContents(web_contents);
|
| + if (client) {
|
| + client->RequestGeolocationPermission(
|
| + web_contents, requesting_frame, result_callback, cancel_callback);
|
| + } else {
|
| + LOG(WARNING) << "Failed to find the associated bridge for geolocation "
|
| + << "permission request.";
|
| + result_callback.Run(false);
|
| + }
|
| +}
|
| +
|
| bool AwContentBrowserClient::CanCreateWindow(
|
| const GURL& opener_url,
|
| const GURL& opener_top_level_frame_url,
|
|
|