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

Issue 3092015: Add CoreLocation support to Chrome (Closed)

Created:
10 years, 4 months ago by jorgevillatoro
Modified:
9 years, 7 months ago
Reviewers:
joth, Nico, allanwoj
CC:
chromium-reviews, John Grabowski, pam+watch_chromium.org, ben+cc_chromium.org, Paweł Hajdan Jr.
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

Add CoreLocation support to Chrome. Patch from Jorge Villatoro <jorge@tomatocannon.com>; This add core location support to the Geolocation code. Included are the base location provider class, a data provider class that allows CoreLocation to run on the UI thread, and an Objective C wrapper for CoreLocation. Hints were taken from the CoreWLAN Api class in the same directory for dynamically loading the framework, since CoreLocation is only available on Snow Leopard (Mac OS X 10.6) This new provider has also been added to the location arbitrator in the same way that the libgps provider was added. BUG=45548 TEST=Open the browser with the --enable-geolocation argument on 10.6 and visit http://maps.google.com/maps/m Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=59213

Patch Set 1 #

Total comments: 27

Patch Set 2 : Changes requested by Joth #

Total comments: 8

Patch Set 3 : Updated with the last round of comments #

Total comments: 1

Patch Set 4 : Reorganized data_provider a little and added a setDelegate call #

Patch Set 5 : Added enable-core-location switch #

Total comments: 6

Patch Set 6 : Final rearrangements and merge with trunk #

Unified diffs Side-by-side diffs Delta from patch set Stats (+392 lines, -2 lines) Patch
M AUTHORS View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A chrome/browser/geolocation/core_location_data_provider_mac.h View 1 2 3 1 chunk +53 lines, -0 lines 0 comments Download
A chrome/browser/geolocation/core_location_data_provider_mac.mm View 1 2 3 1 chunk +241 lines, -0 lines 0 comments Download
A chrome/browser/geolocation/core_location_provider_mac.h View 1 1 chunk +36 lines, -0 lines 0 comments Download
A chrome/browser/geolocation/core_location_provider_mac.mm View 1 2 3 4 1 chunk +51 lines, -0 lines 0 comments Download
M chrome/browser/geolocation/gps_location_provider_linux.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/geolocation/location_provider.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 5 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Nico
You said on the bug that this changes the UI how the user is asked ...
10 years, 4 months ago (2010-08-07 19:10:39 UTC) #1
jorgevillatoro
I couldn't find any way to change the way that CoreLocation deals with allowing access ...
10 years, 4 months ago (2010-08-07 19:15:58 UTC) #2
joth
On 2010/08/07 19:15:58, jorgevillatoro wrote: > I couldn't find any way to change the way ...
10 years, 4 months ago (2010-08-09 11:49:14 UTC) #3
joth
Many thanks for contributing this. A few comments on the code, but also need to ...
10 years, 4 months ago (2010-08-09 12:17:32 UTC) #4
jorgevillatoro
On 2010/08/09 12:17:32, joth wrote: I'll make those changes code changes this evening, thanks for ...
10 years, 4 months ago (2010-08-09 17:52:39 UTC) #5
jorgevillatoro
I've made the changes requested by Joth, as well as fixed a few issues with ...
10 years, 4 months ago (2010-08-10 00:44:14 UTC) #6
joth
Looks good, few small comments then all that remains is the permission prompt. (Which has ...
10 years, 4 months ago (2010-08-10 12:39:48 UTC) #7
jorgevillatoro
Thanks for the quick feedback again. I have a couple of comments as well: On ...
10 years, 4 months ago (2010-08-10 15:18:58 UTC) #8
joth
On 10 August 2010 16:18, <jorge@tomatocannon.com> wrote: > Thanks for the quick feedback again. I ...
10 years, 4 months ago (2010-08-10 16:08:05 UTC) #9
Nico
On Tue, Aug 10, 2010 at 9:07 AM, Jonathan Dixon <joth@chromium.org> wrote: > > > ...
10 years, 4 months ago (2010-08-10 16:22:41 UTC) #10
joth
On 10 August 2010 17:22, Nico Weber <thakis@chromium.org> wrote: > On Tue, Aug 10, 2010 ...
10 years, 4 months ago (2010-08-10 16:39:14 UTC) #11
jorgevillatoro
Now updated with the latest round of comments. I tried moving the Obj-C class declaration ...
10 years, 4 months ago (2010-08-11 02:28:46 UTC) #12
joth
All looks good, pending the permissions prompt issue and the error handling problem you mentioned. ...
10 years, 4 months ago (2010-08-11 15:52:05 UTC) #13
jorgevillatoro
Here are the latest changes, this should be in pretty good shape now with the ...
10 years, 4 months ago (2010-08-13 15:37:50 UTC) #14
jorgevillatoro
Joth, I've been looking into your question about whether or not we can check the ...
10 years, 4 months ago (2010-08-17 19:41:19 UTC) #15
joth
To add another option (or more like, a strategy to apply to either your listed ...
10 years, 4 months ago (2010-08-18 14:12:02 UTC) #16
jorgevillatoro
Sorry for the long period of silence here, I had my attention pulled away for ...
10 years, 3 months ago (2010-08-29 22:55:40 UTC) #17
allanwoj
Looks good. Apart from a few ordering issues, looks ready to go. You'll probably need ...
10 years, 3 months ago (2010-08-31 12:45:17 UTC) #18
jorgevillatoro
Allan, This should tidy up those ordering issues, as well as merge with the current ...
10 years, 3 months ago (2010-09-09 19:01:02 UTC) #19
allanwoj
10 years, 3 months ago (2010-09-13 11:08:35 UTC) #20
Thanks Jorge, I have now landed your patch at
http://src.chromium.org/viewvc/chrome?view=rev&revision=59213
Thanks for the great work!
Allan

On 2010/09/09 19:01:02, jorgevillatoro wrote:
> Allan,
> 
> This should tidy up those ordering issues, as well as merge with the current
> trunk.  Let me know if you see anything else that should be changed.
> 
> Thanks,
> --JOrge
> 
> http://codereview.chromium.org/3092015/diff/48001/49013
> File chrome/chrome_browser.gypi (right):
> 
> http://codereview.chromium.org/3092015/diff/48001/49013#newcode1441
> chrome/chrome_browser.gypi:1441:
> 'browser/geolocation/core_location_data_provider_mac.h',
> On 2010/08/31 12:45:18, allanwoj wrote:
> > Data provider files should be first.
> 
> Done.
> 
> http://codereview.chromium.org/3092015/diff/48001/49014
> File chrome/common/chrome_switches.cc (right):
> 
> http://codereview.chromium.org/3092015/diff/48001/49014#newcode469
> chrome/common/chrome_switches.cc:469: const char kEnableCoreLocation[]        
 
>  = "enable-core-location";
> On 2010/08/31 12:45:18, allanwoj wrote:
> > Should be in alphabetical order.
> 
> Done.
> 
> http://codereview.chromium.org/3092015/diff/48001/49015
> File chrome/common/chrome_switches.h (right):
> 
> http://codereview.chromium.org/3092015/diff/48001/49015#newcode151
> chrome/common/chrome_switches.h:151: extern const char kEnableCoreLocation[];
> On 2010/08/31 12:45:18, allanwoj wrote:
> > Should be in alphabetical order further up the list.
> 
> Done.

Powered by Google App Engine
This is Rietveld 408576698