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

Issue 7243012: Change many extension event routers to not be singletons and to be more profile-aware. (Closed)

Created:
9 years, 6 months ago by Yoyo Zhou
Modified:
9 years, 5 months ago
CC:
chromium-reviews, Aaron Boodman, rginda+watch_chromium.org, achuith+watch_chromium.org, Erik does not do reviews, davemoore+watch_chromium.org, jstritar, Miranda Callahan
Visibility:
Public.

Description

Change many extension event routers to not be singletons and to be more profile-aware. Make these event routers owned by the profile via the ExtensionService, and only handle events for their profile: - history (note: already doesn't work in incognito) - bookmark - cookies - management - web navigation BUG=57186, 81745 TEST=covered by existing tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=90477

Patch Set 1 #

Total comments: 11

Patch Set 2 : asargent comments #

Patch Set 3 : bookmark remove observer #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -180 lines) Patch
M chrome/browser/chromeos/extensions/file_browser_event_router.h View 3 chunks +3 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_browser_event_router.cc View 1 2 chunks +10 lines, -25 lines 0 comments Download
M chrome/browser/extensions/extension_bookmarks_module.h View 1 2 3 chunks +4 lines, -13 lines 0 comments Download
M chrome/browser/extensions/extension_bookmarks_module.cc View 1 2 2 chunks +12 lines, -11 lines 0 comments Download
M chrome/browser/extensions/extension_cookies_api.h View 2 chunks +3 lines, -9 lines 0 comments Download
M chrome/browser/extensions/extension_cookies_api.cc View 1 chunk +8 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_history_api.h View 3 chunks +2 lines, -14 lines 0 comments Download
M chrome/browser/extensions/extension_history_api.cc View 1 1 chunk +23 lines, -35 lines 0 comments Download
M chrome/browser/extensions/extension_management_api.h View 2 chunks +3 lines, -10 lines 0 comments Download
M chrome/browser/extensions/extension_management_api.cc View 1 2 chunks +9 lines, -13 lines 0 comments Download
M chrome/browser/extensions/extension_service.h View 2 chunks +20 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 1 chunk +15 lines, -16 lines 0 comments Download
M chrome/browser/extensions/extension_webnavigation_api.h View 3 chunks +6 lines, -8 lines 0 comments Download
M chrome/browser/extensions/extension_webnavigation_api.cc View 2 chunks +8 lines, -11 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Yoyo Zhou
9 years, 6 months ago (2011-06-23 21:07:49 UTC) #1
asargent_no_longer_on_chrome
description nit: the second number on the BUG= line is wrong - I think you ...
9 years, 6 months ago (2011-06-23 22:18:38 UTC) #2
Yoyo Zhou
Fixed the BUG= line. http://codereview.chromium.org/7243012/diff/1/chrome/browser/chromeos/extensions/file_browser_event_router.cc File chrome/browser/chromeos/extensions/file_browser_event_router.cc (right): http://codereview.chromium.org/7243012/diff/1/chrome/browser/chromeos/extensions/file_browser_event_router.cc#newcode78 chrome/browser/chromeos/extensions/file_browser_event_router.cc:78: if (!profile_) On 2011/06/23 22:18:38, ...
9 years, 6 months ago (2011-06-24 17:21:38 UTC) #3
asargent_no_longer_on_chrome
http://codereview.chromium.org/7243012/diff/1/chrome/browser/extensions/extension_bookmarks_module.cc File chrome/browser/extensions/extension_bookmarks_module.cc (right): http://codereview.chromium.org/7243012/diff/1/chrome/browser/extensions/extension_bookmarks_module.cc#newcode128 chrome/browser/extensions/extension_bookmarks_module.cc:128: model->AddObserver(this); On 2011/06/24 17:21:38, Yoyo Zhou wrote: > On ...
9 years, 6 months ago (2011-06-24 18:56:39 UTC) #4
Yoyo Zhou
http://codereview.chromium.org/7243012/diff/1/chrome/browser/extensions/extension_bookmarks_module.cc File chrome/browser/extensions/extension_bookmarks_module.cc (right): http://codereview.chromium.org/7243012/diff/1/chrome/browser/extensions/extension_bookmarks_module.cc#newcode128 chrome/browser/extensions/extension_bookmarks_module.cc:128: model->AddObserver(this); On 2011/06/24 18:56:39, Antony Sargent wrote: > On ...
9 years, 6 months ago (2011-06-24 22:10:33 UTC) #5
Yoyo Zhou
On 2011/06/24 22:10:33, Yoyo Zhou wrote: > http://codereview.chromium.org/7243012/diff/1/chrome/browser/extensions/extension_bookmarks_module.cc > File chrome/browser/extensions/extension_bookmarks_module.cc (right): > > http://codereview.chromium.org/7243012/diff/1/chrome/browser/extensions/extension_bookmarks_module.cc#newcode128 ...
9 years, 6 months ago (2011-06-24 22:34:10 UTC) #6
asargent_no_longer_on_chrome
LGTM
9 years, 6 months ago (2011-06-24 22:38:02 UTC) #7
commit-bot: I haz the power
Change committed as 90477
9 years, 6 months ago (2011-06-25 02:21:49 UTC) #8
zel
9 years, 5 months ago (2011-07-20 17:44:48 UTC) #9
LGTM

Powered by Google App Engine
This is Rietveld 408576698