Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(289)

Issue 6538093: Implementation of ExtensionEventRouterForwarder (Closed)

Created:
9 years, 10 months ago by battre
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Aaron Boodman, Erik does not do reviews, pam+watch_chromium.org
Visibility:
Public.

Description

Implementation of ExtensionEventRouterForwarder Implementation of ExtensionEventRouterForwarder, a class that allows forwarding events from contexts without a profile (e.g. system URL request context) and from the IO thread to extensions. BUG=73903 TEST=unit_tests --gtest_filter='ExtensionEventRouterForwarderTest.*' Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=75807

Patch Set 1 #

Patch Set 2 : Pacify linter #

Total comments: 28

Patch Set 3 : Addressed comments #

Patch Set 4 : Removed unneccessary blank line #

Total comments: 2

Patch Set 5 : Added unit tests for incognito profiles #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+501 lines, -4 lines) Patch
A chrome/browser/extensions/extension_event_router_forwarder.h View 1 2 3 1 chunk +100 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_event_router_forwarder.cc View 1 2 1 chunk +102 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_event_router_forwarder_unittest.cc View 1 2 3 4 1 chunk +253 lines, -0 lines 1 comment Download
M chrome/browser/profiles/profile_manager.h View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_manager.cc View 1 2 2 chunks +16 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/testing_browser_process.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/test/testing_browser_process.cc View 1 2 2 chunks +7 lines, -2 lines 0 comments Download
M chrome/test/testing_profile.h View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/test/testing_profile.cc View 1 2 3 4 1 chunk +6 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
battre
Please review. Thanks.
9 years, 10 months ago (2011-02-22 17:34:43 UTC) #1
jochen (gone - plz use gerrit)
+matt matt, the idea is to get rid of the dependency of chrome network delegate ...
9 years, 10 months ago (2011-02-22 19:05:35 UTC) #2
Matt Perry
http://codereview.chromium.org/6538093/diff/2004/chrome/browser/extensions/extension_event_router_forwarder.cc File chrome/browser/extensions/extension_event_router_forwarder.cc (right): http://codereview.chromium.org/6538093/diff/2004/chrome/browser/extensions/extension_event_router_forwarder.cc#newcode19 chrome/browser/extensions/extension_event_router_forwarder.cc:19: void ExtensionEventRouterForwarder::DispatchEventToRenderers( This method is very similar to DispatchEventToExtension. ...
9 years, 10 months ago (2011-02-22 20:16:25 UTC) #3
Matt Perry
http://codereview.chromium.org/6538093/diff/2004/chrome/browser/extensions/extension_event_router_forwarder.cc File chrome/browser/extensions/extension_event_router_forwarder.cc (right): http://codereview.chromium.org/6538093/diff/2004/chrome/browser/extensions/extension_event_router_forwarder.cc#newcode19 chrome/browser/extensions/extension_event_router_forwarder.cc:19: void ExtensionEventRouterForwarder::DispatchEventToRenderers( This method is very similar to DispatchEventToExtension. ...
9 years, 10 months ago (2011-02-22 20:16:25 UTC) #4
jochen (gone - plz use gerrit)
http://codereview.chromium.org/6538093/diff/2004/chrome/browser/extensions/extension_event_router_forwarder.h File chrome/browser/extensions/extension_event_router_forwarder.h (right): http://codereview.chromium.org/6538093/diff/2004/chrome/browser/extensions/extension_event_router_forwarder.h#newcode18 chrome/browser/extensions/extension_event_router_forwarder.h:18: // This class forwards events to ExtensionEventRouters. On 2011/02/22 ...
9 years, 10 months ago (2011-02-22 20:31:07 UTC) #5
Paweł Hajdan Jr.
Drive-by with minor testing-related comments. Please let me do another review before committing. http://codereview.chromium.org/6538093/diff/2004/chrome/browser/extensions/extension_event_router_forwarder_unittest.cc File ...
9 years, 10 months ago (2011-02-23 07:28:58 UTC) #6
jochen (gone - plz use gerrit)
http://codereview.chromium.org/6538093/diff/2004/chrome/browser/extensions/extension_event_router_forwarder.cc File chrome/browser/extensions/extension_event_router_forwarder.cc (right): http://codereview.chromium.org/6538093/diff/2004/chrome/browser/extensions/extension_event_router_forwarder.cc#newcode58 chrome/browser/extensions/extension_event_router_forwarder.cc:58: event_name, event_args, restrict_to_profile, event_url); On 2011/02/22 20:16:25, Matt Perry ...
9 years, 10 months ago (2011-02-23 08:35:36 UTC) #7
battre
Thanks for your reviews. I have addressed the comments. http://codereview.chromium.org/6538093/diff/2004/chrome/browser/extensions/extension_event_router_forwarder.cc File chrome/browser/extensions/extension_event_router_forwarder.cc (right): http://codereview.chromium.org/6538093/diff/2004/chrome/browser/extensions/extension_event_router_forwarder.cc#newcode19 chrome/browser/extensions/extension_event_router_forwarder.cc:19: ...
9 years, 10 months ago (2011-02-23 14:12:17 UTC) #8
Matt Perry
LG on my end. http://codereview.chromium.org/6538093/diff/12002/chrome/browser/extensions/extension_event_router_forwarder_unittest.cc File chrome/browser/extensions/extension_event_router_forwarder_unittest.cc (right): http://codereview.chromium.org/6538093/diff/12002/chrome/browser/extensions/extension_event_router_forwarder_unittest.cc#newcode1 chrome/browser/extensions/extension_event_router_forwarder_unittest.cc:1: // Copyright (c) 2011 The ...
9 years, 10 months ago (2011-02-23 19:22:12 UTC) #9
battre
Thanks. http://codereview.chromium.org/6538093/diff/12002/chrome/browser/extensions/extension_event_router_forwarder_unittest.cc File chrome/browser/extensions/extension_event_router_forwarder_unittest.cc (right): http://codereview.chromium.org/6538093/diff/12002/chrome/browser/extensions/extension_event_router_forwarder_unittest.cc#newcode1 chrome/browser/extensions/extension_event_router_forwarder_unittest.cc:1: // Copyright (c) 2011 The Chromium Authors. All ...
9 years, 10 months ago (2011-02-23 20:59:35 UTC) #10
jochen (gone - plz use gerrit)
lg
9 years, 10 months ago (2011-02-23 21:12:52 UTC) #11
commit-bot: I haz the power
No LGTM from valid reviewers yet.
9 years, 10 months ago (2011-02-23 22:01:12 UTC) #12
jochen (gone - plz use gerrit)
On 2011/02/23 22:01:12, commit-bot wrote: > No LGTM from valid reviewers yet. LGTM
9 years, 10 months ago (2011-02-23 22:02:45 UTC) #13
commit-bot: I haz the power
Change committed as 75807
9 years, 10 months ago (2011-02-23 22:45:05 UTC) #14
Paweł Hajdan Jr.
9 years, 10 months ago (2011-02-25 17:57:35 UTC) #15
Code I commented in the drive-by LGTM with a comment.

http://codereview.chromium.org/6538093/diff/15002/chrome/browser/extensions/e...
File chrome/browser/extensions/extension_event_router_forwarder_unittest.cc
(right):

http://codereview.chromium.org/6538093/diff/15002/chrome/browser/extensions/e...
chrome/browser/extensions/extension_event_router_forwarder_unittest.cc:69:
ScopedTestingBrowserProcess browser_process_;
nit: I'd suggest inheriting from TestingBrowserProcess instead, so that
browser_process_ is the very first member variable (might help in tricky
situations).

Powered by Google App Engine
This is Rietveld 408576698