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

Issue 276032: Refactor notification provider in renderer process to not use a message filte... (Closed)

Created:
11 years, 2 months ago by John Gregg
Modified:
9 years ago
Reviewers:
jabdelmalek, jam
CC:
chromium-reviews_googlegroups.com, brettw+cc_chromium.org, darin (slow to review), jam
Visibility:
Public.

Description

Refactor notification provider in renderer process to not use a message filter. BUG=24241 TEST=not crashing Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=29064

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 8

Patch Set 4 : '' #

Total comments: 5

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -68 lines) Patch
M chrome/renderer/notification_provider.h View 1 2 3 4 3 chunks +10 lines, -17 lines 0 comments Download
M chrome/renderer/notification_provider.cc View 1 2 3 4 5 chunks +16 lines, -46 lines 0 comments Download
M chrome/renderer/render_view.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/render_view.cc View 1 2 3 4 5 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
John Gregg
11 years, 2 months ago (2009-10-14 21:42:50 UTC) #1
jabdelmalek
http://codereview.chromium.org/276032/diff/2005/2008 File chrome/renderer/notification_provider.cc (right): http://codereview.chromium.org/276032/diff/2005/2008#newcode80 Line 80: nit: extra line http://codereview.chromium.org/276032/diff/2005/2008#newcode82 Line 82: DCHECK(MessageLoop::current()->type() == ...
11 years, 2 months ago (2009-10-14 21:48:10 UTC) #2
John Gregg
New code posted. http://codereview.chromium.org/276032/diff/2005/2008 File chrome/renderer/notification_provider.cc (right): http://codereview.chromium.org/276032/diff/2005/2008#newcode80 Line 80: On 2009/10/14 21:48:10, jabdelmalek wrote: ...
11 years, 2 months ago (2009-10-14 22:08:01 UTC) #3
jam
http://codereview.chromium.org/276032/diff/2005/2008 File chrome/renderer/notification_provider.cc (right): http://codereview.chromium.org/276032/diff/2005/2008#newcode82 Line 82: DCHECK(MessageLoop::current()->type() == MessageLoop::TYPE_UI); On 2009/10/14 22:08:01, John Gregg ...
11 years, 2 months ago (2009-10-14 22:15:47 UTC) #4
John Gregg
code revised again. http://codereview.chromium.org/276032/diff/2005/2008 File chrome/renderer/notification_provider.cc (right): http://codereview.chromium.org/276032/diff/2005/2008#newcode82 Line 82: DCHECK(MessageLoop::current()->type() == MessageLoop::TYPE_UI); Okay, they're ...
11 years, 2 months ago (2009-10-14 22:48:31 UTC) #5
jam
11 years, 2 months ago (2009-10-14 23:00:23 UTC) #6
lgtm, thanks for the quick turnaround.

http://codereview.chromium.org/276032/diff/1006/2017
File chrome/renderer/render_view.cc (right):

http://codereview.chromium.org/276032/diff/1006/2017#newcode390
Line 390: if (notification_provider_.get() &&
On 2009/10/14 22:48:31, John Gregg wrote:
> I prefer that too, so I'll change it.  But devtools_agent is initialized and
> checked in exactly the same way.

Actually, looking at devtools_agent doesn't need a check either, since AddRoute
is called in Init(), so there's no chance of a message coming before it's
created.  Up to you where you want to create notification_provider_.

Powered by Google App Engine
This is Rietveld 408576698