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

Issue 2742002: Clean up geolocation_dispatcher_host.h (Closed)

Created:
10 years, 6 months ago by joth
Modified:
9 years, 7 months ago
Reviewers:
andreip3000
CC:
chromium-reviews, bulach
Visibility:
Public.

Description

Clean up geolocation_dispatcher_host.h It was pulling internal geolocation headers into resource_message_filter.cc BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=49271

Patch Set 1 #

Patch Set 2 : Further simplification - remove incorrect reference to UI thread, pin everything in the IO thread #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -108 lines) Patch
M chrome/browser/geolocation/geolocation_dispatcher_host.h View 1 chunk +6 lines, -56 lines 0 comments Download
M chrome/browser/geolocation/geolocation_dispatcher_host.cc View 1 10 chunks +97 lines, -51 lines 1 comment Download
M chrome/browser/geolocation/geolocation_permission_context.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/renderer_host/resource_message_filter.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
joth
Nice easy review (I hope!) :)
10 years, 6 months ago (2010-06-08 12:40:40 UTC) #1
andreip3000
Looks good, one question below: http://codereview.chromium.org/2742002/diff/3001/4001 File chrome/browser/geolocation/geolocation_dispatcher_host.cc (right): http://codereview.chromium.org/2742002/diff/3001/4001#newcode135 chrome/browser/geolocation/geolocation_dispatcher_host.cc:135: geolocation_renderer_ids_.insert(render_view_id); Maybe it is ...
10 years, 6 months ago (2010-06-08 14:59:52 UTC) #2
joth
Thanks no problem about the Q... On 8 June 2010 15:59, <andreip@chromium.org> wrote: > Looks ...
10 years, 6 months ago (2010-06-08 15:12:26 UTC) #3
andreip3000
10 years, 6 months ago (2010-06-08 15:15:01 UTC) #4
LGTM

I see, thanks for the explanation.


On 2010/06/08 15:12:26, joth wrote:
> Thanks
> 
> no problem about the Q...
> 
> On 8 June 2010 15:59, <mailto:andreip@chromium.org> wrote:
> 
> > Looks good, one question below:
> >
> >
> > http://codereview.chromium.org/2742002/diff/3001/4001
> > File chrome/browser/geolocation/geolocation_dispatcher_host.cc (right):
> >
> > http://codereview.chromium.org/2742002/diff/3001/4001#newcode135
> > chrome/browser/geolocation/geolocation_dispatcher_host.cc:135:
> > geolocation_renderer_ids_.insert(render_view_id);
> > Maybe it is obvious but I am still learning the codebase: before you
> > were calling RegisterDispatcher, which was checking that the call was
> > made on the right thread and, if not, it was   dispatching it to the
> > right thread. Now, you just assert we're always on the correct thread.
> > Why is this?
> >
> >
> RegisterDispatcher was only ever called from OnRegisterDispatcher which in
> turn is only called from OnMessageReceived (through the message map) which
> we know - and assert - is only called on the IO thread. as it is hooked into
> resource message filter which by design is only running on IO thread
> 
> At some point in the past this was either not the case, or we weren't sure
> it would be, but in the current (stable) incarnation is certainly appears to
> be as I describe.
> 
> 
> 
> 
> 
> 
> >
> > http://codereview.chromium.org/2742002/show
> >
>

Powered by Google App Engine
This is Rietveld 408576698