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

Issue 11269002: Introduce GeolocationPermissionRequestID, a wrapper struct to contain the (render process ID, rende… (Closed)

Created:
8 years, 2 months ago by Peter Kasting
Modified:
8 years, 1 month ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, Ramya
Visibility:
Public.

Description

Introduce GeolocationPermissionRequestID, a wrapper class to contain the (render process ID, render view ID, bridge ID) triple that uniquely identifies a geolocation permission request. This ends up simplifying/saving a noticeable chunk of code. Also do some other cleanups, e.g.: * Eliminating using statements when they don't save any lines * Wrapping per the style guide rules * Changing PendingInfoBarRequest from a struct to a class since it has more than just a constructor/init method * Move GeolocationDispatcherHost into content namespace. BUG=none TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=164475

Patch Set 1 #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+461 lines, -527 lines) Patch
M chrome/browser/geolocation/chrome_geolocation_permission_context.h View 1 2 6 chunks +6 lines, -13 lines 0 comments Download
M chrome/browser/geolocation/chrome_geolocation_permission_context.cc View 1 2 9 chunks +51 lines, -68 lines 0 comments Download
M chrome/browser/geolocation/chrome_geolocation_permission_context_android.h View 1 2 1 chunk +4 lines, -7 lines 0 comments Download
M chrome/browser/geolocation/chrome_geolocation_permission_context_android.cc View 1 2 3 chunks +5 lines, -9 lines 0 comments Download
M chrome/browser/geolocation/chrome_geolocation_permission_context_unittest.cc View 1 2 24 chunks +95 lines, -112 lines 0 comments Download
M chrome/browser/geolocation/geolocation_confirm_infobar_delegate.h View 1 2 3 chunks +6 lines, -11 lines 0 comments Download
M chrome/browser/geolocation/geolocation_confirm_infobar_delegate.cc View 1 2 3 chunks +8 lines, -16 lines 0 comments Download
M chrome/browser/geolocation/geolocation_confirm_infobar_delegate_android.h View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/geolocation/geolocation_confirm_infobar_delegate_android.cc View 1 2 1 chunk +3 lines, -9 lines 0 comments Download
M chrome/browser/geolocation/geolocation_confirm_infobar_delegate_factory.h View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/geolocation/geolocation_confirm_infobar_delegate_factory.cc View 1 2 1 chunk +6 lines, -21 lines 0 comments Download
M chrome/browser/geolocation/geolocation_infobar_queue_controller.h View 1 2 3 chunks +17 lines, -31 lines 0 comments Download
M chrome/browser/geolocation/geolocation_infobar_queue_controller.cc View 1 2 6 chunks +123 lines, -174 lines 0 comments Download
M chrome/browser/geolocation/geolocation_infobar_queue_controller_unittest.cc View 1 2 6 chunks +15 lines, -19 lines 0 comments Download
A chrome/browser/geolocation/geolocation_permission_request_id.h View 1 2 1 chunk +35 lines, -0 lines 0 comments Download
A chrome/browser/geolocation/geolocation_permission_request_id.cc View 1 2 1 chunk +37 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/geolocation/geolocation.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/geolocation/geolocation_dispatcher_host.h View 1 chunk +6 lines, -4 lines 0 comments Download
M content/browser/geolocation/geolocation_dispatcher_host.cc View 1 2 7 chunks +33 lines, -26 lines 0 comments Download
M content/public/browser/geolocation_permission_context.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 20 (0 generated)
Peter Kasting
joi: content/public/browser/ OWNERS jknotten: everything It's not clear to me that geolocation.h is the ideal ...
8 years, 2 months ago (2012-10-24 03:32:57 UTC) #1
Jói
LGTM with a question. Adding jam@ who wants to be in the loop on interface ...
8 years, 2 months ago (2012-10-24 09:48:36 UTC) #2
John Knottenbelt
Very nice, thanks Peter! lgtm. CC'ing Ramya, who has a change in flight regarding Android ...
8 years, 2 months ago (2012-10-24 10:59:10 UTC) #3
John Knottenbelt
Just noticed that GeolocationPermissionContextTests.TabDestroyed unit test failed on linux_rel, win_rel and maybe some other bots, ...
8 years, 2 months ago (2012-10-24 12:41:55 UTC) #4
jam
given that -this new struct should be a class -the content api only has interfaces ...
8 years, 2 months ago (2012-10-24 16:39:43 UTC) #5
Peter Kasting
On 2012/10/24 16:39:43, John Abd-El-Malek wrote: > -this new struct should be a class I ...
8 years, 2 months ago (2012-10-24 19:48:37 UTC) #6
Peter Kasting
https://codereview.chromium.org/11269002/diff/11003/chrome/browser/geolocation/geolocation_infobar_queue_controller.cc File chrome/browser/geolocation/geolocation_infobar_queue_controller.cc (right): https://codereview.chromium.org/11269002/diff/11003/chrome/browser/geolocation/geolocation_infobar_queue_controller.cc#newcode257 chrome/browser/geolocation/geolocation_infobar_queue_controller.cc:257: InfoBarTabHelper* GeolocationInfoBarQueueController::GetInfoBarHelper( On 2012/10/24 10:59:10, John Knottenbelt wrote: > ...
8 years, 2 months ago (2012-10-24 19:50:47 UTC) #7
jam
On Wed, Oct 24, 2012 at 12:48 PM, <pkasting@chromium.org> wrote: > On 2012/10/24 16:39:43, John ...
8 years, 2 months ago (2012-10-24 20:06:03 UTC) #8
Peter Kasting
On 2012/10/24 20:06:03, John Abd-El-Malek wrote: > > The big problem with this is that ...
8 years, 2 months ago (2012-10-24 21:01:07 UTC) #9
jam
On Wed, Oct 24, 2012 at 2:01 PM, <pkasting@chromium.org> wrote: > On 2012/10/24 20:06:03, John ...
8 years, 2 months ago (2012-10-24 21:16:55 UTC) #10
Peter Kasting
I appreciate the utility of simple rules. I also prefer simplicity and would rather not ...
8 years, 2 months ago (2012-10-24 21:27:30 UTC) #11
jam
On Wed, Oct 24, 2012 at 2:27 PM, <pkasting@chromium.org> wrote: > I appreciate the utility ...
8 years, 2 months ago (2012-10-24 22:00:08 UTC) #12
Peter Kasting
On 2012/10/24 22:00:08, John Abd-El-Malek wrote: > btw this should go into > content/public/browser/geolocation_permission_request_id.h per ...
8 years, 2 months ago (2012-10-24 22:33:59 UTC) #13
jam
On Wed, Oct 24, 2012 at 3:33 PM, <pkasting@chromium.org> wrote: > On 2012/10/24 22:00:08, John ...
8 years, 2 months ago (2012-10-24 22:48:34 UTC) #14
jam
On Wed, Oct 24, 2012 at 3:48 PM, John Abd-El-Malek <jam@chromium.org> wrote: > > > ...
8 years, 2 months ago (2012-10-24 22:49:36 UTC) #15
Peter Kasting
On 2012/10/24 22:48:34, John Abd-El-Malek wrote: > > I'm not sure precisely what "keep it ...
8 years, 2 months ago (2012-10-24 22:55:25 UTC) #16
Peter Kasting
New snap up. joi/jknotten, please re-review. This implements John's suggestion of moving the new class ...
8 years, 1 month ago (2012-10-25 23:01:30 UTC) #17
jam
content lgtm
8 years, 1 month ago (2012-10-26 00:55:31 UTC) #18
John Knottenbelt
lgtm, thanks again Peter.
8 years, 1 month ago (2012-10-26 12:40:55 UTC) #19
Jói
8 years, 1 month ago (2012-10-26 13:13:22 UTC) #20
You already have John's approval for content/, but just for form's sake here is
my LGTM.

Cheers,
Jói

Powered by Google App Engine
This is Rietveld 408576698