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

Issue 12211047: Implementing geolocation for the Android Webview (Closed)

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

Description

Implementing geolocation for the Android Webview Enabling geolocation callbacks BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=182465

Patch Set 1 #

Patch Set 2 : Minor style updates #

Total comments: 53

Patch Set 3 : Addressed issues from reviews #

Total comments: 16

Patch Set 4 : More fixes from comments #

Patch Set 5 : Updated indenting #

Total comments: 18

Patch Set 6 : Invoke propmt in a task, misc review feedback #

Total comments: 15

Patch Set 7 : Removed On prefix and check for weak ref null #

Patch Set 8 : store a local ref during method call #

Total comments: 2

Patch Set 9 : Store a local ref when calling hide #

Total comments: 4

Patch Set 10 : removed catching ClassCastException #

Patch Set 11 : Added const #

Unified diffs Side-by-side diffs Delta from patch set Stats (+260 lines, -85 lines) Patch
M android_webview/browser/aw_content_browser_client.cc View 1 2 3 4 5 6 2 chunks +14 lines, -10 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 2 3 4 5 2 chunks +42 lines, -20 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwGeolocationPermissions.java View 1 2 3 4 5 6 7 8 9 7 chunks +74 lines, -10 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwSettings.java View 1 2 3 2 chunks +21 lines, -0 lines 0 comments Download
M android_webview/native/aw_contents.h View 1 2 3 4 5 6 4 chunks +16 lines, -5 lines 0 comments Download
M android_webview/native/aw_contents.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +79 lines, -11 lines 0 comments Download
M android_webview/native/aw_geolocation_permission_context.h View 1 2 chunks +0 lines, -8 lines 0 comments Download
M android_webview/native/aw_geolocation_permission_context.cc View 1 2 3 4 5 6 4 chunks +14 lines, -21 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
Kristian Monsen
Martin, I plan to create a native AwContentsClient and move the code from aw_contents.cc there ...
7 years, 10 months ago (2013-02-06 18:53:07 UTC) #1
boliu
https://codereview.chromium.org/12211047/diff/2001/android_webview/browser/aw_content_browser_client.cc File android_webview/browser/aw_content_browser_client.cc (right): https://codereview.chromium.org/12211047/diff/2001/android_webview/browser/aw_content_browser_client.cc#newcode26 android_webview/browser/aw_content_browser_client.cc:26: class DummyAccessTokenStore : public content::AccessTokenStore { Rename this class ...
7 years, 10 months ago (2013-02-06 20:29:54 UTC) #2
joth
https://codereview.chromium.org/12211047/diff/2001/android_webview/browser/aw_content_browser_client.cc File android_webview/browser/aw_content_browser_client.cc (right): https://codereview.chromium.org/12211047/diff/2001/android_webview/browser/aw_content_browser_client.cc#newcode32 android_webview/browser/aw_content_browser_client.cc:32: request.Run(access_token_set_, NULL); comment that access tokens not used on ...
7 years, 10 months ago (2013-02-06 22:09:51 UTC) #3
benm (inactive)
https://codereview.chromium.org/12211047/diff/5002/android_webview/java/src/org/chromium/android_webview/AwGeolocationPermissions.java File android_webview/java/src/org/chromium/android_webview/AwGeolocationPermissions.java (right): https://codereview.chromium.org/12211047/diff/5002/android_webview/java/src/org/chromium/android_webview/AwGeolocationPermissions.java#newcode83 android_webview/java/src/org/chromium/android_webview/AwGeolocationPermissions.java:83: * Clear one origin from being allowed and denied. ...
7 years, 10 months ago (2013-02-07 17:22:39 UTC) #4
Kristian Monsen
Should have addressed all comments from reviews. PTAL. https://codereview.chromium.org/12211047/diff/2001/android_webview/browser/aw_content_browser_client.cc File android_webview/browser/aw_content_browser_client.cc (right): https://codereview.chromium.org/12211047/diff/2001/android_webview/browser/aw_content_browser_client.cc#newcode26 android_webview/browser/aw_content_browser_client.cc:26: class ...
7 years, 10 months ago (2013-02-08 00:07:44 UTC) #5
joth
https://codereview.chromium.org/12211047/diff/2001/android_webview/java/src/org/chromium/android_webview/AwGeolocationPermissions.java File android_webview/java/src/org/chromium/android_webview/AwGeolocationPermissions.java (right): https://codereview.chromium.org/12211047/diff/2001/android_webview/java/src/org/chromium/android_webview/AwGeolocationPermissions.java#newcode129 android_webview/java/src/org/chromium/android_webview/AwGeolocationPermissions.java:129: allowed = mSharedPreferences.getBoolean(key, true); On 2013/02/08 00:07:44, Kristian Monsen ...
7 years, 10 months ago (2013-02-08 02:15:01 UTC) #6
benm (inactive)
https://codereview.chromium.org/12211047/diff/3011/android_webview/browser/aw_content_browser_client.cc File android_webview/browser/aw_content_browser_client.cc (right): https://codereview.chromium.org/12211047/diff/3011/android_webview/browser/aw_content_browser_client.cc#newcode291 android_webview/browser/aw_content_browser_client.cc:291: // TODO(boliu): Implement as part of geolocation code. nit: ...
7 years, 10 months ago (2013-02-08 13:25:19 UTC) #7
benm (inactive)
https://chromiumcodereview.appspot.com/12211047/diff/1010/android_webview/native/aw_contents.cc File android_webview/native/aw_contents.cc (right): https://chromiumcodereview.appspot.com/12211047/diff/1010/android_webview/native/aw_contents.cc#newcode734 android_webview/native/aw_contents.cc:734: LOG(INFO) << "Running task geo"; nit: remove logging? https://chromiumcodereview.appspot.com/12211047/diff/1010/android_webview/native/aw_contents.cc#newcode739 ...
7 years, 10 months ago (2013-02-12 10:46:30 UTC) #8
Kristian Monsen
Addressed comments, PTAL https://chromiumcodereview.appspot.com/12211047/diff/3011/android_webview/browser/aw_content_browser_client.cc File android_webview/browser/aw_content_browser_client.cc (right): https://chromiumcodereview.appspot.com/12211047/diff/3011/android_webview/browser/aw_content_browser_client.cc#newcode291 android_webview/browser/aw_content_browser_client.cc:291: // TODO(boliu): Implement as part of ...
7 years, 10 months ago (2013-02-12 18:53:03 UTC) #9
benm (inactive)
https://codereview.chromium.org/12211047/diff/1010/android_webview/native/aw_contents.cc File android_webview/native/aw_contents.cc (right): https://codereview.chromium.org/12211047/diff/1010/android_webview/native/aw_contents.cc#newcode760 android_webview/native/aw_contents.cc:760: GeolocationShowPrompt(java_ref_, origin); I don't think checking for null is ...
7 years, 10 months ago (2013-02-12 19:03:21 UTC) #10
Kristian Monsen
https://codereview.chromium.org/12211047/diff/1010/android_webview/native/aw_contents.cc File android_webview/native/aw_contents.cc (right): https://codereview.chromium.org/12211047/diff/1010/android_webview/native/aw_contents.cc#newcode760 android_webview/native/aw_contents.cc:760: GeolocationShowPrompt(java_ref_, origin); On 2013/02/12 19:03:21, benm wrote: > I ...
7 years, 10 months ago (2013-02-12 19:17:20 UTC) #11
boliu
https://codereview.chromium.org/12211047/diff/1010/android_webview/native/aw_contents.cc File android_webview/native/aw_contents.cc (right): https://codereview.chromium.org/12211047/diff/1010/android_webview/native/aw_contents.cc#newcode760 android_webview/native/aw_contents.cc:760: GeolocationShowPrompt(java_ref_, origin); Sorry, I got confused this morning, I ...
7 years, 10 months ago (2013-02-12 19:18:47 UTC) #12
Ben Murdoch
https://codereview.chromium.org/12211047/diff/1010/android_webview/native/aw_contents.cc File android_webview/native/aw_contents.cc (right): https://codereview.chromium.org/12211047/diff/1010/android_webview/native/aw_contents.cc#newcode760 android_webview/native/aw_contents.cc:760: GeolocationShowPrompt(java_ref_, origin); Yes, get() will return a ScopedJavaLocalRef. I ...
7 years, 10 months ago (2013-02-12 19:21:05 UTC) #13
Kristian Monsen
https://codereview.chromium.org/12211047/diff/1010/android_webview/native/aw_contents.cc File android_webview/native/aw_contents.cc (right): https://codereview.chromium.org/12211047/diff/1010/android_webview/native/aw_contents.cc#newcode760 android_webview/native/aw_contents.cc:760: GeolocationShowPrompt(java_ref_, origin); On 2013/02/12 19:21:05, Ben Murdoch wrote: > ...
7 years, 10 months ago (2013-02-12 19:23:38 UTC) #14
Ben Murdoch
https://codereview.chromium.org/12211047/diff/9002/android_webview/native/aw_contents.cc File android_webview/native/aw_contents.cc (right): https://codereview.chromium.org/12211047/diff/9002/android_webview/native/aw_contents.cc#newcode802 android_webview/native/aw_contents.cc:802: if (java_ref_.get(env).obj()) { Think you need to call get() ...
7 years, 10 months ago (2013-02-12 19:24:54 UTC) #15
Kristian Monsen
Addressed comments, PTAL https://codereview.chromium.org/12211047/diff/9002/android_webview/native/aw_contents.cc File android_webview/native/aw_contents.cc (right): https://codereview.chromium.org/12211047/diff/9002/android_webview/native/aw_contents.cc#newcode802 android_webview/native/aw_contents.cc:802: if (java_ref_.get(env).obj()) { On 2013/02/12 19:24:54, ...
7 years, 10 months ago (2013-02-12 19:30:44 UTC) #16
benm (inactive)
Sorry to keep banging on about the ClassCastException. I'm just not convinced that we need ...
7 years, 10 months ago (2013-02-12 19:40:33 UTC) #17
Kristian Monsen
Addressed comments, PTAL. https://codereview.chromium.org/12211047/diff/10011/android_webview/java/src/org/chromium/android_webview/AwGeolocationPermissions.java File android_webview/java/src/org/chromium/android_webview/AwGeolocationPermissions.java (right): https://codereview.chromium.org/12211047/diff/10011/android_webview/java/src/org/chromium/android_webview/AwGeolocationPermissions.java#newcode124 android_webview/java/src/org/chromium/android_webview/AwGeolocationPermissions.java:124: mSharedPreferences.edit().remove(getOriginKey(origin)).apply(); On 2013/02/12 19:40:33, benm wrote: ...
7 years, 10 months ago (2013-02-12 23:48:35 UTC) #18
benm (inactive)
lgtm Thanks Kristian!
7 years, 10 months ago (2013-02-13 15:35:52 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kristianm@chromium.org/12211047/9004
7 years, 10 months ago (2013-02-14 02:25:59 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/12211047/9004
7 years, 10 months ago (2013-02-14 14:22:14 UTC) #21
commit-bot: I haz the power
7 years, 10 months ago (2013-02-14 14:58:59 UTC) #22
Message was sent while issue was closed.
Change committed as 182465

Powered by Google App Engine
This is Rietveld 408576698