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

Issue 6125003: Make ExtensionBrowserEventRouter owned by ExtensionService.... (Closed)

Created:
9 years, 11 months ago by asargent_no_longer_on_chrome
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Aaron Boodman, Erik does not do reviews, pam+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Make ExtensionBrowserEventRouter owned by ExtensionService. Before this change, it's a Singleton that gets passed a pointer to a Profile during Init(), and holds onto that pointer even after the Profile gets destroyed. With this change, it's owned by ExtensionService and is destroyed when the profile is being destructed. BUG=67927 TEST=On linux, run 'browser_tests --gtest_filter=ExtensionApiTest.BookmarkManager --gtest_repeat=100 --gtest_break_on_failure'. Before this CL, you'll occasionally get a failure because of the race condition described above. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=71526

Patch Set 1 : '' #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 4

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -33 lines) Patch
M chrome/browser/automation/automation_provider.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/browser_action_apitest.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_browser_event_router.h View 1 2 3 4 3 chunks +3 lines, -8 lines 0 comments Download
M chrome/browser/extensions/extension_browser_event_router.cc View 1 2 3 4 3 chunks +13 lines, -10 lines 0 comments Download
M chrome/browser/extensions/extension_service.h View 1 2 3 4 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 3 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/extensions/page_action_apitest.cc View 1 2 3 4 3 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/location_bar/page_action_decoration.mm View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc View 1 2 3 4 4 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/ui/gtk/location_bar_view_gtk.cc View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/views/browser_actions_container.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/location_bar/page_action_image_view.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
asargent_no_longer_on_chrome
To review this, I'd suggest starting with extension_service.{h,cc}, then look at extension_browser_event_router.{h,cc}, then the rest ...
9 years, 11 months ago (2011-01-10 23:14:34 UTC) #1
asargent_no_longer_on_chrome
Oops, I forgot to include a review in the to: line on this CL. That's ...
9 years, 11 months ago (2011-01-11 00:57:03 UTC) #2
asargent_no_longer_on_chrome
Ok, actually ready for review now. See earlier message for a suggested order to view ...
9 years, 11 months ago (2011-01-11 18:04:44 UTC) #3
Erik does not do reviews
LGTM http://codereview.chromium.org/6125003/diff/73001/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): http://codereview.chromium.org/6125003/diff/73001/chrome/browser/extensions/extension_service.cc#newcode8 chrome/browser/extensions/extension_service.cc:8: #include <set> I don't see anything new that ...
9 years, 11 months ago (2011-01-12 00:31:54 UTC) #4
asargent_no_longer_on_chrome
9 years, 11 months ago (2011-01-13 21:34:07 UTC) #5
http://codereview.chromium.org/6125003/diff/73001/chrome/browser/extensions/e...
File chrome/browser/extensions/extension_service.cc (right):

http://codereview.chromium.org/6125003/diff/73001/chrome/browser/extensions/e...
chrome/browser/extensions/extension_service.cc:8: #include <set>
On 2011/01/12 00:31:54, Erik Kay wrote:
> I don't see anything new that uses this.
There's existing code that uses it - I noticed a warning about it missing from
running 'gcl lint' on my CL, and figured I'd fix it while I'm in here.

http://codereview.chromium.org/6125003/diff/73001/chrome/browser/gtk/location...
File chrome/browser/gtk/location_bar_view_gtk.cc (right):

http://codereview.chromium.org/6125003/diff/73001/chrome/browser/gtk/location...
chrome/browser/gtk/location_bar_view_gtk.cc:7: #include <algorithm>
On 2011/01/12 00:31:54, Erik Kay wrote:
> why did these get added?
Same deal here - just cleanup of gcl lint while I'm in the neighborhood.

Powered by Google App Engine
This is Rietveld 408576698