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

Issue 7548022: Profiles: Introduce AllProfilesAndSources(). (Closed)

Created:
9 years, 4 months ago by Elliot Glaysher
Modified:
9 years, 4 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org
Visibility:
Public.

Description

Profiles: Introduce AllBrowserContextsAndSources(). Eventually, we need to remove all current instances of AllSources(). One by one, they need to either changed to listen to a specific notification source, or (in very few cases where we actually are listening for a global notification) they need to work correctly in the presence of multiple profiles, in which case they'll be turned to AllBrowserContextsAndSources(). This patch, in addition: - Deletes more unused notifications. - Changes a few AllSources() calls to listen to specific objects. BUG=87457 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=95469

Patch Set 1 #

Total comments: 5

Patch Set 2 : Avi fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -53 lines) Patch
M chrome/browser/notifications/notification_exceptions_table_model.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/tabs/tab_strip_model.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/task_manager/task_manager_resource_providers.cc View 1 8 chunks +24 lines, -24 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/gtk/global_menu_bar.cc View 4 chunks +9 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_widget_host.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M content/common/content_notification_types.h View 2 chunks +0 lines, -14 lines 0 comments Download
M content/common/notification_service.h View 1 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Elliot Glaysher
The name AllProfilesAndSources() was picked as it doesn't contain the substring "AllSources()" and it points ...
9 years, 4 months ago (2011-08-02 21:51:35 UTC) #1
Elliot Glaysher
The name AllProfilesAndSources() was picked as it doesn't contain the substring "AllSources()" and it points ...
9 years, 4 months ago (2011-08-02 21:52:12 UTC) #2
jam
I'm not the best reviewer for this, others like brett/darin can give more enlightened feedback ...
9 years, 4 months ago (2011-08-03 00:28:13 UTC) #3
Elliot Glaysher
Per jam@'s suggestion, redirecting the review to brettw@ and darin@.
9 years, 4 months ago (2011-08-03 17:49:05 UTC) #4
darin (slow to review)
LGTM http://codereview.chromium.org/7548022/diff/1/content/common/notification_service.h File content/common/notification_service.h (right): http://codereview.chromium.org/7548022/diff/1/content/common/notification_service.h#newcode58 content/common/notification_service.h:58: static Source<void> AllProfilesAndSources() { return Source<void>(NULL); } I ...
9 years, 4 months ago (2011-08-03 19:36:40 UTC) #5
jam
http://codereview.chromium.org/7548022/diff/1/content/common/notification_service.h File content/common/notification_service.h (right): http://codereview.chromium.org/7548022/diff/1/content/common/notification_service.h#newcode58 content/common/notification_service.h:58: static Source<void> AllProfilesAndSources() { return Source<void>(NULL); } On 2011/08/03 ...
9 years, 4 months ago (2011-08-03 19:40:13 UTC) #6
jam
Adding Avi, who's been spending a bit of time getting rid of knowledge about profile ...
9 years, 4 months ago (2011-08-03 19:40:51 UTC) #7
Avi (use Gerrit)
http://codereview.chromium.org/7548022/diff/1/content/common/notification_service.h File content/common/notification_service.h (right): http://codereview.chromium.org/7548022/diff/1/content/common/notification_service.h#newcode58 content/common/notification_service.h:58: static Source<void> AllProfilesAndSources() { return Source<void>(NULL); } I've been ...
9 years, 4 months ago (2011-08-03 19:48:47 UTC) #8
Elliot Glaysher
Will do Avi's requested rename. http://codereview.chromium.org/7548022/diff/1/content/common/notification_service.h File content/common/notification_service.h (right): http://codereview.chromium.org/7548022/diff/1/content/common/notification_service.h#newcode58 content/common/notification_service.h:58: static Source<void> AllProfilesAndSources() { ...
9 years, 4 months ago (2011-08-03 19:57:06 UTC) #9
commit-bot: I haz the power
9 years, 4 months ago (2011-08-04 19:56:51 UTC) #10
Change committed as 95469

Powered by Google App Engine
This is Rietveld 408576698