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

Unified Diff: android_webview/browser/aw_content_browser_client.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_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 8b1b827dd423d0e29fc44a499d1f26f3bdc27c4e..1b5851da7c653eae9c188f26a56e362a20fb044a 100644
--- a/android_webview/browser/aw_content_browser_client.cc
+++ b/android_webview/browser/aw_content_browser_client.cc
@@ -44,13 +44,15 @@ class DummyAccessTokenStore : public content::AccessTokenStore {
namespace android_webview {
AwContentBrowserClient::AwContentBrowserClient(
- ViewDelegateFactoryFn* view_delegate_factory)
+ ViewDelegateFactoryFn* view_delegate_factory,
+ content::GeolocationPermissionContext* geolocation_permission_context)
benm (inactive) 2013/01/04 11:35:52 Why does this need to come in as a param here? Cou
boliu 2013/01/04 16:42:05 That would lead to a DEPS violation since AwBrowse
Kristian Monsen 2013/01/04 17:13:46 Right now lazy instantiation would not get anythin
boliu 2013/01/04 17:17:30 I was suggesting FactoryFn (ie function pointer) i
Kristian Monsen 2013/01/04 22:54:31 Updated to do this, take a look and see if this wa
: view_delegate_factory_(view_delegate_factory) {
FilePath user_data_dir;
if (!PathService::Get(base::DIR_ANDROID_APP_DATA, &user_data_dir)) {
NOTREACHED() << "Failed to get app data directory for Android WebView";
}
- browser_context_.reset(new AwBrowserContext(user_data_dir));
+ browser_context_.reset(
+ new AwBrowserContext(user_data_dir, geolocation_permission_context));
}
AwContentBrowserClient::~AwContentBrowserClient() {

Powered by Google App Engine
This is Rietveld 408576698