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

Issue 3152043: device_orientation::DispatcherHost: one Provider observer per render_view_id. (Closed)

Created:
10 years, 4 months ago by hans
Modified:
9 years, 5 months ago
Reviewers:
joth, jorlow
CC:
chromium-reviews, ben+cc_chromium.org
Visibility:
Public.

Description

device_orientation::DispatcherHost: one Provider observer per render_view_id. Refactor device_orientation::DispatcherHost to create a 1-to-1 relationship between a RenderView and an observer of the Provider. The intention is to remove the need for logic from DispatcherHost, and in effect have the RenderView observe the Provider. BUG=44654 TEST=browser_tests --gtest_filter=DeviceOrientationBrowserTest.BasicTest Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=57176

Patch Set 1 #

Total comments: 25

Patch Set 2 : Patch #

Patch Set 3 : Patch #

Patch Set 4 : Patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -39 lines) Patch
M chrome/browser/device_orientation/dispatcher_host.h View 1 2 3 2 chunks +10 lines, -8 lines 0 comments Download
M chrome/browser/device_orientation/dispatcher_host.cc View 1 2 3 2 chunks +62 lines, -31 lines 0 comments Download
M chrome/browser/device_orientation/provider.h View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
hans
10 years, 4 months ago (2010-08-23 13:17:41 UTC) #1
jorlow
I like this...seems pretty elegant. Few (double checking) questions: http://codereview.chromium.org/3152043/diff/1/2 File chrome/browser/device_orientation/dispatcher_host.cc (right): http://codereview.chromium.org/3152043/diff/1/2#newcode77 chrome/browser/device_orientation/dispatcher_host.cc:77: ...
10 years, 4 months ago (2010-08-23 13:30:36 UTC) #2
joth
http://codereview.chromium.org/3152043/diff/1/2 File chrome/browser/device_orientation/dispatcher_host.cc (right): http://codereview.chromium.org/3152043/diff/1/2#newcode27 chrome/browser/device_orientation/dispatcher_host.cc:27: DispatcherHost::ObserverHelper::ObserverHelper(scoped_refptr<Provider> provider, strictly this should either be const scoped_refptr<>& ...
10 years, 4 months ago (2010-08-23 13:49:35 UTC) #3
hans
Thanks for the input. Addressing your comments and uploading new patch. http://codereview.chromium.org/3152043/diff/1/2 File chrome/browser/device_orientation/dispatcher_host.cc (right): ...
10 years, 4 months ago (2010-08-23 14:53:14 UTC) #4
jorlow
http://codereview.chromium.org/3152043/diff/1/3 File chrome/browser/device_orientation/dispatcher_host.h (right): http://codereview.chromium.org/3152043/diff/1/3#newcode19 chrome/browser/device_orientation/dispatcher_host.h:19: class DispatcherHost : public base::RefCountedThreadSafe<DispatcherHost> { On 2010/08/23 14:53:15, ...
10 years, 4 months ago (2010-08-23 14:59:29 UTC) #5
hans
Ok. Making it just RefCounted, and sending it for an extra try run :)
10 years, 4 months ago (2010-08-23 15:24:32 UTC) #6
joth
http://codereview.chromium.org/3152043/diff/1/3 File chrome/browser/device_orientation/dispatcher_host.h (right): http://codereview.chromium.org/3152043/diff/1/3#newcode19 chrome/browser/device_orientation/dispatcher_host.h:19: class DispatcherHost : public base::RefCountedThreadSafe<DispatcherHost> { On 2010/08/23 14:59:29, ...
10 years, 4 months ago (2010-08-23 16:38:32 UTC) #7
hans
On 2010/08/23 16:38:32, joth wrote: > http://codereview.chromium.org/3152043/diff/1/3 > File chrome/browser/device_orientation/dispatcher_host.h (right): > > http://codereview.chromium.org/3152043/diff/1/3#newcode19 > ...
10 years, 4 months ago (2010-08-24 08:47:32 UTC) #8
hans
Ping? If there are no further comments, I'd like to land this.
10 years, 4 months ago (2010-08-24 11:39:32 UTC) #9
joth
10 years, 4 months ago (2010-08-24 11:49:54 UTC) #10
LGTM

Thanks,

On 2010/08/24 11:39:32, hans wrote:
> Ping? If there are no further comments, I'd like to land this.

Powered by Google App Engine
This is Rietveld 408576698