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

Issue 12375004: Re-home the global MessageCenter to support Ash+Win environments. (Closed)

Created:
7 years, 9 months ago by dewittj
Modified:
7 years, 9 months ago
CC:
chromium-reviews, sadrul, ben+watch_chromium.org, vadimt
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Re-home the global MessageCenter to support Ash+Win environments. In the case where Ash is displayed on Windows, we want a single message center data structure with multiple UI surfaces for notifications. g_browser_process now manages the lifetime of the global Message Center object, since its lifetime is always longer than Ash::Shell. This allows us to re-enable the browser tests for message center on Ash+Win, and stops a crash bug. BUG=178429 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=186220

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fix TestingBrowserProcess, merge with origin #

Patch Set 3 : Fix ash_unittests. #

Patch Set 4 : Another tryjob fix. #

Patch Set 5 : Fix ViewEventTestBase (manually constructs Ash::Shell.) #

Patch Set 6 : Fix DesktopNotificationsTest. #

Patch Set 7 : Fix browser_tests. #

Patch Set 8 : Merge master. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -73 lines) Patch
M ash/shell.h View 1 2 3 4 5 6 7 3 chunks +0 lines, -9 lines 0 comments Download
M ash/shell.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -6 lines 0 comments Download
M ash/system/web_notification/web_notification_tray.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M ash/test/ash_test_base.cc View 1 2 3 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/browser_process_impl.h View 2 chunks +0 lines, -9 lines 0 comments Download
M chrome/browser/browser_process_impl.cc View 1 6 chunks +9 lines, -22 lines 0 comments Download
M chrome/browser/notifications/desktop_notifications_unittest.cc View 1 2 3 4 5 3 chunks +14 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/base/testing_browser_process.h View 1 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/test/base/testing_browser_process.cc View 1 2 3 2 chunks +1 line, -11 lines 0 comments Download
M chrome/test/base/view_event_test_base.cc View 1 2 3 4 3 chunks +14 lines, -0 lines 0 comments Download
M ui/message_center/message_center.h View 1 2 3 chunks +13 lines, -3 lines 0 comments Download
M ui/message_center/message_center.cc View 1 2 1 chunk +23 lines, -0 lines 0 comments Download
M ui/message_center/message_center_tray_unittest.cc View 1 chunk +6 lines, -4 lines 0 comments Download
M ui/message_center/message_center_util.cc View 1 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
dewittj
Could you guys preliminary review this change? As discussed over email, I made initialization and ...
7 years, 9 months ago (2013-02-27 23:48:52 UTC) #1
stevenjb
I like this much better, thanks! LGTM w/nit https://codereview.chromium.org/12375004/diff/1/ash/shell.cc File ash/shell.cc (right): https://codereview.chromium.org/12375004/diff/1/ash/shell.cc#newcode853 ash/shell.cc:853: return ...
7 years, 9 months ago (2013-02-28 01:16:59 UTC) #2
cpu_(ooo_6.6-7.5)
I don't see anything wrong with the patch.
7 years, 9 months ago (2013-02-28 01:23:21 UTC) #3
cpu_(ooo_6.6-7.5)
btw, how do you manualy test this?
7 years, 9 months ago (2013-02-28 01:24:00 UTC) #4
Dmitry Titov
lgtm! Do you need to update test_browser_process.*?
7 years, 9 months ago (2013-02-28 01:35:47 UTC) #5
dewittj
On 2013/02/28 01:24:00, cpu wrote: > btw, how do you manualy test this? On my ...
7 years, 9 months ago (2013-02-28 01:40:49 UTC) #6
dewittj
sky, PTAL. OWNERS for ash/ and chrome/browser/ thanks
7 years, 9 months ago (2013-02-28 23:51:15 UTC) #7
sky
LGTM
7 years, 9 months ago (2013-03-01 00:37:01 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dewittj@chromium.org/12375004/10001
7 years, 9 months ago (2013-03-01 00:39:37 UTC) #9
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) ash_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=15305
7 years, 9 months ago (2013-03-01 03:18:26 UTC) #10
cpu_(ooo_6.6-7.5)
retrying CQ in lieu of dewitt, but low hopes.
7 years, 9 months ago (2013-03-01 04:10:54 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dewittj@chromium.org/12375004/10001
7 years, 9 months ago (2013-03-01 04:11:09 UTC) #12
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) ash_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=15360
7 years, 9 months ago (2013-03-01 06:26:03 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dewittj@chromium.org/12375004/17005
7 years, 9 months ago (2013-03-05 17:39:04 UTC) #14
commit-bot: I haz the power
Change committed as 186220
7 years, 9 months ago (2013-03-05 19:10:25 UTC) #15
flackr
This seems to have broken ash_shell.
7 years, 9 months ago (2013-03-05 22:57:43 UTC) #16
stevenjb (google-dont-use)
We probably need to add message_center::MessageCenter::Initialize() (and Shutdown) to ash_shell (possibly inside #if defined(ENABLE_MESSAGE_CENTER)) On ...
7 years, 9 months ago (2013-03-05 23:10:58 UTC) #17
dewittj
On 2013/03/05 23:10:58, stevenjb1 wrote: > We probably need to add message_center::MessageCenter::Initialize() (and > Shutdown) ...
7 years, 9 months ago (2013-03-05 23:11:39 UTC) #18
dewittj
7 years, 9 months ago (2013-03-05 23:15:01 UTC) #19
Message was sent while issue was closed.
On 2013/03/05 23:11:39, dewittj wrote:
> On 2013/03/05 23:10:58, stevenjb1 wrote:
> > We probably need to add message_center::MessageCenter::Initialize() (and
> > Shutdown) to ash_shell (possibly inside #if defined(ENABLE_MESSAGE_CENTER))
> > 
> > 
> > 
> > 
> > On Tue, Mar 5, 2013 at 2:57 PM, <mailto:flackr@chromium.org> wrote:
> > 
> > > This seems to have broken ash_shell.
> > >
> > >
> >
>
https://chromiumcodereview.**appspot.com/12375004/%253Chttps://chromiumcodere...>
> > >
> 
> I'm working on a change.

See crrev.com/12488003

Powered by Google App Engine
This is Rietveld 408576698