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

Issue 6598002: Make the ChromeNetworkDelegate use the ExtensionEventRouterForwarder (Closed)

Created:
9 years, 10 months ago by jochen (gone - plz use gerrit)
Modified:
9 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, Erik does not do reviews, Aaron Boodman, pam+watch_chromium.org, Paweł Hajdan Jr., darin-cc_chromium.org, battre
Visibility:
Public.

Description

Make the ChromeNetworkDelegate use the ExtensionEventRouterForwarder BUG=73903 TEST=tests for proxy and webrequest API should still work Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=76372

Patch Set 1 #

Total comments: 3

Patch Set 2 : use profile id #

Total comments: 2

Patch Set 3 : rebase #

Patch Set 4 : rebase for real #

Patch Set 5 : updates #

Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -243 lines) Patch
M chrome/browser/browser_process.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/browser_process_impl.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/browser_process_impl.cc View 1 2 3 4 4 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/chromeos/locale_change_guard.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_event_router_forwarder.h View 1 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_event_router_forwarder.cc View 1 2 3 4 5 chunks +18 lines, -13 lines 0 comments Download
M chrome/browser/extensions/extension_event_router_forwarder_unittest.cc View 1 7 chunks +14 lines, -7 lines 0 comments Download
D chrome/browser/extensions/extension_io_event_router.h View 1 chunk +0 lines, -54 lines 0 comments Download
D chrome/browser/extensions/extension_io_event_router.cc View 1 chunk +0 lines, -69 lines 0 comments Download
M chrome/browser/extensions/extension_proxy_api.h View 1 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_proxy_api.cc View 1 2 3 4 3 chunks +11 lines, -5 lines 0 comments Download
M chrome/browser/extensions/extension_webrequest_api.h View 1 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_webrequest_api.cc View 1 2 3 4 3 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/io_thread.h View 3 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/io_thread.cc View 1 2 3 4 7 chunks +12 lines, -21 lines 0 comments Download
M chrome/browser/net/chrome_network_delegate.h View 1 2 chunks +10 lines, -4 lines 0 comments Download
M chrome/browser/net/chrome_network_delegate.cc View 1 4 chunks +11 lines, -9 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_io_data.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/profiles/off_the_record_profile_io_data.cc View 1 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/profiles/profile.h View 1 2 3 4 3 chunks +1 line, -5 lines 0 comments Download
M chrome/browser/profiles/profile.cc View 1 2 3 4 2 chunks +1 line, -5 lines 0 comments Download
M chrome/browser/profiles/profile_impl.h View 1 2 3 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 chunks +0 lines, -10 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.h View 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.h View 1 4 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/profiles/profile_manager.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_manager.cc View 1 2 3 4 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/test/testing_browser_process.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/testing_browser_process.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/test/testing_profile.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/testing_profile.cc View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download
M content/browser/browsing_instance.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
jochen (gone - plz use gerrit)
please review
9 years, 10 months ago (2011-02-25 11:47:23 UTC) #1
Matt Perry
LGTM, but please wait for any comments from Will. http://codereview.chromium.org/6598002/diff/1/chrome/browser/io_thread.cc File chrome/browser/io_thread.cc (left): http://codereview.chromium.org/6598002/diff/1/chrome/browser/io_thread.cc#oldcode182 chrome/browser/io_thread.cc:182: ...
9 years, 10 months ago (2011-02-25 23:28:40 UTC) #2
willchan no longer on Chromium
http://codereview.chromium.org/6598002/diff/1/chrome/browser/io_thread.cc File chrome/browser/io_thread.cc (left): http://codereview.chromium.org/6598002/diff/1/chrome/browser/io_thread.cc#oldcode182 chrome/browser/io_thread.cc:182: class SystemNetworkDelegate : public net::NetworkDelegate { On 2011/02/25 23:28:40, ...
9 years, 10 months ago (2011-02-26 02:11:35 UTC) #3
jochen (gone - plz use gerrit)
updated the CL to pass around a ProfileId instead of a Profile*
9 years, 9 months ago (2011-02-28 10:18:40 UTC) #4
willchan no longer on Chromium
9 years, 9 months ago (2011-02-28 21:48:40 UTC) #5
LGTM, thanks!

http://codereview.chromium.org/6598002/diff/4001/chrome/browser/extensions/ex...
File chrome/browser/extensions/extension_event_router_forwarder.cc (right):

http://codereview.chromium.org/6598002/diff/4001/chrome/browser/extensions/ex...
chrome/browser/extensions/extension_event_router_forwarder.cc:73: if (profile_id
!= Profile::InvalidProfileId && !profile)
Shouldn't we only call GetProfileWithId() if profile_id !=
Profile::kInvalidProfileId (s/InvalidProfileId/kInvalidProfileId/)?

Perhaps you should initialize |profile| to NULL, and then call
GetProfileWithId() if |profile_id| != Profile::kInvalidProfileId.

PS: OIC, InvalidProfileId already existed. Then it's ok for you to use that, but
if you feel so inclined, you could fix the naming (it doesn't look too hard).
I'd encourage (but not require) doing so, since it's not widely used yet so it
should be easy to fix.

http://codereview.chromium.org/6598002/diff/4001/chrome/browser/profiles/prof...
File chrome/browser/profiles/profile_manager.cc (right):

http://codereview.chromium.org/6598002/diff/4001/chrome/browser/profiles/prof...
chrome/browser/profiles/profile_manager.cc:142: Profile*
ProfileManager::GetProfileWithId(ProfileId profile_id) {
I think it should be a bug for profile_id == kInvalidProfileId. I'd add a
DCHECK_NE.

Powered by Google App Engine
This is Rietveld 408576698