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

Issue 11763002: Implementing native chromium GeolocationPermissionContext (Closed)

Created:
7 years, 11 months ago by Kristian Monsen
Modified:
7 years, 11 months ago
CC:
chromium-reviews, android-webview-reviews_chromium.org
Visibility:
Public.

Description

Implementing native chromium GeolocationPermissionContext BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=176032

Patch Set 1 #

Patch Set 2 : Fixed wrongly named function #

Patch Set 3 : Different static cast #

Total comments: 4

Patch Set 4 : Passing AwGeolocationPermission to the ctor #

Total comments: 5

Patch Set 5 : Using factory function ptr instead of passing object #

Total comments: 27

Patch Set 6 : Misc fixes #

Total comments: 6

Patch Set 7 : Small corrections #

Total comments: 10

Patch Set 8 : style issues #

Total comments: 2

Patch Set 9 : Removed _fn from variable names #

Patch Set 10 : Added On prefix to geolocation functiobs #

Patch Set 11 : Added TODO comment #

Patch Set 12 : Fixing clang errors #

Unified diffs Side-by-side diffs Delta from patch set Stats (+248 lines, -11 lines) Patch
M android_webview/browser/aw_browser_context.h View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -1 line 0 comments Download
M android_webview/browser/aw_browser_context.cc View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -6 lines 0 comments Download
M android_webview/browser/aw_content_browser_client.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -1 line 0 comments Download
M android_webview/browser/aw_content_browser_client.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -2 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 3 chunks +31 lines, -0 lines 0 comments Download
M android_webview/lib/main/aw_main_delegate.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -1 line 0 comments Download
M android_webview/native/aw_contents.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +7 lines, -0 lines 0 comments Download
M android_webview/native/aw_contents.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +16 lines, -0 lines 0 comments Download
A android_webview/native/aw_geolocation_permission_context.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +60 lines, -0 lines 0 comments Download
A android_webview/native/aw_geolocation_permission_context.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +103 lines, -0 lines 0 comments Download
M android_webview/native/webview_native.gyp View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
Kristian Monsen
Not ready to submit yet, but it is growing large, and a bit complicated in ...
7 years, 11 months ago (2013-01-03 08:04:15 UTC) #1
boliu
https://chromiumcodereview.appspot.com/11763002/diff/4001/android_webview/native/aw_contents.cc File android_webview/native/aw_contents.cc (right): https://chromiumcodereview.appspot.com/11763002/diff/4001/android_webview/native/aw_contents.cc#newcode179 android_webview/native/aw_contents.cc:179: aw_browser_context->set_geolocation_permissions_context( BrowserContext outlives AwContents, it's equivalent to profiles in ...
7 years, 11 months ago (2013-01-03 08:14:37 UTC) #2
Kristian Monsen
https://chromiumcodereview.appspot.com/11763002/diff/4001/android_webview/native/aw_contents.cc File android_webview/native/aw_contents.cc (right): https://chromiumcodereview.appspot.com/11763002/diff/4001/android_webview/native/aw_contents.cc#newcode179 android_webview/native/aw_contents.cc:179: aw_browser_context->set_geolocation_permissions_context( On 2013/01/03 08:14:38, boliu wrote: > BrowserContext outlives ...
7 years, 11 months ago (2013-01-03 08:37:58 UTC) #3
boliu
https://chromiumcodereview.appspot.com/11763002/diff/4001/android_webview/native/aw_contents.cc File android_webview/native/aw_contents.cc (right): https://chromiumcodereview.appspot.com/11763002/diff/4001/android_webview/native/aw_contents.cc#newcode179 android_webview/native/aw_contents.cc:179: aw_browser_context->set_geolocation_permissions_context( On 2013/01/03 08:37:58, kristianm1 wrote: > On 2013/01/03 ...
7 years, 11 months ago (2013-01-03 08:48:35 UTC) #4
Kristian Monsen
https://codereview.chromium.org/11763002/diff/4001/android_webview/native/aw_contents.cc File android_webview/native/aw_contents.cc (right): https://codereview.chromium.org/11763002/diff/4001/android_webview/native/aw_contents.cc#newcode179 android_webview/native/aw_contents.cc:179: aw_browser_context->set_geolocation_permissions_context( On 2013/01/03 08:48:35, boliu wrote: > On 2013/01/03 ...
7 years, 11 months ago (2013-01-04 06:14:21 UTC) #5
Kristian Monsen
I have tested this today, and it sends the prompt to java as expected by ...
7 years, 11 months ago (2013-01-04 08:27:05 UTC) #6
benm (inactive)
https://codereview.chromium.org/11763002/diff/9001/android_webview/browser/aw_content_browser_client.cc File android_webview/browser/aw_content_browser_client.cc (right): https://codereview.chromium.org/11763002/diff/9001/android_webview/browser/aw_content_browser_client.cc#newcode48 android_webview/browser/aw_content_browser_client.cc:48: content::GeolocationPermissionContext* geolocation_permission_context) Why does this need to come in ...
7 years, 11 months ago (2013-01-04 11:35:52 UTC) #7
boliu
https://codereview.chromium.org/11763002/diff/9001/android_webview/browser/aw_content_browser_client.cc File android_webview/browser/aw_content_browser_client.cc (right): https://codereview.chromium.org/11763002/diff/9001/android_webview/browser/aw_content_browser_client.cc#newcode48 android_webview/browser/aw_content_browser_client.cc:48: content::GeolocationPermissionContext* geolocation_permission_context) On 2013/01/04 11:35:52, benm wrote: > Why ...
7 years, 11 months ago (2013-01-04 16:42:05 UTC) #8
Kristian Monsen
https://codereview.chromium.org/11763002/diff/9001/android_webview/browser/aw_content_browser_client.cc File android_webview/browser/aw_content_browser_client.cc (right): https://codereview.chromium.org/11763002/diff/9001/android_webview/browser/aw_content_browser_client.cc#newcode48 android_webview/browser/aw_content_browser_client.cc:48: content::GeolocationPermissionContext* geolocation_permission_context) On 2013/01/04 16:42:05, boliu wrote: > On ...
7 years, 11 months ago (2013-01-04 17:13:46 UTC) #9
boliu
https://codereview.chromium.org/11763002/diff/9001/android_webview/browser/aw_content_browser_client.cc File android_webview/browser/aw_content_browser_client.cc (right): https://codereview.chromium.org/11763002/diff/9001/android_webview/browser/aw_content_browser_client.cc#newcode48 android_webview/browser/aw_content_browser_client.cc:48: content::GeolocationPermissionContext* geolocation_permission_context) On 2013/01/04 17:13:46, Kristian Monsen wrote: > ...
7 years, 11 months ago (2013-01-04 17:17:30 UTC) #10
Kristian Monsen
Updated, PTAL. One question, can I depend on AwBrowserContext only being used from one thread, ...
7 years, 11 months ago (2013-01-04 22:54:31 UTC) #11
boliu_use_chromium_pls
On 2013/01/04 22:54:31, Kristian Monsen wrote: > Updated, PTAL. > > One question, can I ...
7 years, 11 months ago (2013-01-04 23:45:43 UTC) #12
Kristian Monsen
Thanks for the review, I think all should be fixed. https://codereview.chromium.org/11763002/diff/14001/android_webview/browser/aw_browser_context.cc File android_webview/browser/aw_browser_context.cc (right): https://codereview.chromium.org/11763002/diff/14001/android_webview/browser/aw_browser_context.cc#newcode16 ...
7 years, 11 months ago (2013-01-05 02:44:58 UTC) #13
boliu
lgtm % tiny things but also need to wait for one from owner https://codereview.chromium.org/11763002/diff/14001/android_webview/java/src/org/chromium/android_webview/AwContents.java File ...
7 years, 11 months ago (2013-01-05 04:37:35 UTC) #14
Kristian Monsen
Thank you! Waiting for an owner. https://codereview.chromium.org/11763002/diff/22001/android_webview/native/aw_geolocation_permission_context.cc File android_webview/native/aw_geolocation_permission_context.cc (right): https://codereview.chromium.org/11763002/diff/22001/android_webview/native/aw_geolocation_permission_context.cc#newcode27 android_webview/native/aw_geolocation_permission_context.cc:27: const content::RenderViewHost* host ...
7 years, 11 months ago (2013-01-05 04:54:40 UTC) #15
benm (inactive)
lgtm, just nits... https://codereview.chromium.org/11763002/diff/19002/android_webview/native/aw_geolocation_permission_context.cc File android_webview/native/aw_geolocation_permission_context.cc (right): https://codereview.chromium.org/11763002/diff/19002/android_webview/native/aw_geolocation_permission_context.cc#newcode30 android_webview/native/aw_geolocation_permission_context.cc:30: content::WebContents* webContents = nit: web_contents https://codereview.chromium.org/11763002/diff/19002/android_webview/native/aw_geolocation_permission_context.cc#newcode32 ...
7 years, 11 months ago (2013-01-07 10:45:01 UTC) #16
joth
OWNERS lgtm mod-nits. https://codereview.chromium.org/11763002/diff/15012/android_webview/browser/aw_content_browser_client.h File android_webview/browser/aw_content_browser_client.h (right): https://codereview.chromium.org/11763002/diff/15012/android_webview/browser/aw_content_browser_client.h#newcode22 android_webview/browser/aw_content_browser_client.h:22: GeolocationPermissionFactoryFn* geolocation_permission_factory_fn); nit: either use _fn ...
7 years, 11 months ago (2013-01-07 18:17:39 UTC) #17
Kristian Monsen
https://codereview.chromium.org/11763002/diff/19002/android_webview/native/aw_geolocation_permission_context.cc File android_webview/native/aw_geolocation_permission_context.cc (right): https://codereview.chromium.org/11763002/diff/19002/android_webview/native/aw_geolocation_permission_context.cc#newcode30 android_webview/native/aw_geolocation_permission_context.cc:30: content::WebContents* webContents = On 2013/01/07 10:45:02, benm wrote: > ...
7 years, 11 months ago (2013-01-07 18:41:09 UTC) #18
joth
https://codereview.chromium.org/11763002/diff/19002/android_webview/native/aw_geolocation_permission_context.cc File android_webview/native/aw_geolocation_permission_context.cc (right): https://codereview.chromium.org/11763002/diff/19002/android_webview/native/aw_geolocation_permission_context.cc#newcode33 android_webview/native/aw_geolocation_permission_context.cc:33: awContents->GeolocationShowPrompt( On 2013/01/07 18:41:09, Kristian Monsen wrote: > On ...
7 years, 11 months ago (2013-01-07 20:25:15 UTC) #19
Kristian Monsen
https://codereview.chromium.org/11763002/diff/19002/android_webview/native/aw_geolocation_permission_context.cc File android_webview/native/aw_geolocation_permission_context.cc (right): https://codereview.chromium.org/11763002/diff/19002/android_webview/native/aw_geolocation_permission_context.cc#newcode33 android_webview/native/aw_geolocation_permission_context.cc:33: awContents->GeolocationShowPrompt( On 2013/01/07 20:25:15, joth wrote: > On 2013/01/07 ...
7 years, 11 months ago (2013-01-08 08:03:10 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kristianm@chromium.org/11763002/40001
7 years, 11 months ago (2013-01-10 01:35:41 UTC) #21
commit-bot: I haz the power
7 years, 11 months ago (2013-01-10 05:51:47 UTC) #22
Message was sent while issue was closed.
Change committed as 176032

Powered by Google App Engine
This is Rietveld 408576698