Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1863)

Unified Diff: android_webview/browser/aw_browser_context.cc

Issue 11763002: Implementing native chromium GeolocationPermissionContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Passing AwGeolocationPermission to the ctor Created 7 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: android_webview/browser/aw_browser_context.cc
diff --git a/android_webview/browser/aw_browser_context.cc b/android_webview/browser/aw_browser_context.cc
index c476fe835ce4a40b6c68ff52f8b1fd27074f50ba..e8b9dabb6f4dfd3d6b788c941e1176b00195af10 100644
--- a/android_webview/browser/aw_browser_context.cc
+++ b/android_webview/browser/aw_browser_context.cc
@@ -8,8 +8,11 @@
namespace android_webview {
-AwBrowserContext::AwBrowserContext(const FilePath path)
- : context_storage_path_(path) {
+AwBrowserContext::AwBrowserContext(
+ const FilePath path,
+ content::GeolocationPermissionContext* geolocation_permission_context)
+ : context_storage_path_(path),
+ geolocation_permission_context_(geolocation_permission_context) {
}
AwBrowserContext::~AwBrowserContext() {
@@ -75,10 +78,7 @@ AwBrowserContext::GetDownloadManagerDelegate() {
content::GeolocationPermissionContext*
AwBrowserContext::GetGeolocationPermissionContext() {
- // TODO(boliu): Implement this to power WebSettings.setGeolocationEnabled
- // setting.
- NOTIMPLEMENTED();
- return NULL;
+ return geolocation_permission_context_;
}
content::SpeechRecognitionPreferences*

Powered by Google App Engine
This is Rietveld 408576698