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

Issue 593353003: The metro_driver should not block the UI thread while waiting for the Chrome browser IPC channel to… (Closed)

Created:
6 years, 2 months ago by ananta
Modified:
6 years, 2 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

The metro_driver should not block the UI thread while waiting for the Chrome browser IPC channel to be initialized. This causes the taskbar to become unresponsive for a bit on Windows 7. Windows 8 also has the same problem. However it is not as visible as on Windows 7. Fix is to do the IPC channel dance in a timer. BUG=417100 R=cpu Committed: https://crrev.com/b1f98f2be2a9b791754eaebbefe4ffa599aa8c0b Cr-Commit-Position: refs/heads/master@{#297058}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Code review comments #

Patch Set 3 : Fixed build errors #

Total comments: 12

Patch Set 4 : Code review comments #

Total comments: 2

Patch Set 5 : Code review comments from cpu #

Patch Set 6 : Removed unused timer id constant #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -55 lines) Patch
M win8/metro_driver/chrome_app_view_ash.h View 1 2 3 4 4 chunks +16 lines, -1 line 0 comments Download
M win8/metro_driver/chrome_app_view_ash.cc View 1 2 3 4 5 18 chunks +118 lines, -54 lines 0 comments Download

Messages

Total messages: 14 (2 generated)
ananta
6 years, 2 months ago (2014-09-24 00:39:25 UTC) #1
ananta
+scottmg
6 years, 2 months ago (2014-09-24 00:39:42 UTC) #3
scottmg
https://codereview.chromium.org/593353003/diff/1/win8/metro_driver/chrome_app_view_ash.cc File win8/metro_driver/chrome_app_view_ash.cc (right): https://codereview.chromium.org/593353003/diff/1/win8/metro_driver/chrome_app_view_ash.cc#newcode1414 win8/metro_driver/chrome_app_view_ash.cc:1414: if (!IPC::Channel::IsNamedServerInitialized( WaitForChromeIPCConnection isn't used any more, should be ...
6 years, 2 months ago (2014-09-24 02:40:33 UTC) #4
ananta
https://codereview.chromium.org/593353003/diff/1/win8/metro_driver/chrome_app_view_ash.cc File win8/metro_driver/chrome_app_view_ash.cc (right): https://codereview.chromium.org/593353003/diff/1/win8/metro_driver/chrome_app_view_ash.cc#newcode1414 win8/metro_driver/chrome_app_view_ash.cc:1414: if (!IPC::Channel::IsNamedServerInitialized( On 2014/09/24 02:40:32, scottmg wrote: > WaitForChromeIPCConnection ...
6 years, 2 months ago (2014-09-24 18:22:33 UTC) #5
scottmg
I'll defer to Carlos on the larger question of whether it's a good idea to ...
6 years, 2 months ago (2014-09-24 19:33:35 UTC) #6
ananta
https://codereview.chromium.org/593353003/diff/40001/win8/metro_driver/chrome_app_view_ash.cc File win8/metro_driver/chrome_app_view_ash.cc (right): https://codereview.chromium.org/593353003/diff/40001/win8/metro_driver/chrome_app_view_ash.cc#newcode354 win8/metro_driver/chrome_app_view_ash.cc:354: ChromeChannelListener* g_ui_channel_listener = NULL; On 2014/09/24 19:33:35, scottmg wrote: ...
6 years, 2 months ago (2014-09-24 19:57:18 UTC) #7
cpu_(ooo_6.6-7.5)
https://codereview.chromium.org/593353003/diff/60001/win8/metro_driver/chrome_app_view_ash.cc File win8/metro_driver/chrome_app_view_ash.cc (right): https://codereview.chromium.org/593353003/diff/60001/win8/metro_driver/chrome_app_view_ash.cc#newcode690 win8/metro_driver/chrome_app_view_ash.cc:690: UINT_PTR channel_setup_timer_id = change to base::timer, since in line ...
6 years, 2 months ago (2014-09-25 23:00:08 UTC) #8
ananta
https://codereview.chromium.org/593353003/diff/60001/win8/metro_driver/chrome_app_view_ash.cc File win8/metro_driver/chrome_app_view_ash.cc (right): https://codereview.chromium.org/593353003/diff/60001/win8/metro_driver/chrome_app_view_ash.cc#newcode690 win8/metro_driver/chrome_app_view_ash.cc:690: UINT_PTR channel_setup_timer_id = On 2014/09/25 23:00:08, cpu wrote: > ...
6 years, 2 months ago (2014-09-26 02:29:02 UTC) #9
cpu_(ooo_6.6-7.5)
lgtm
6 years, 2 months ago (2014-09-26 22:07:26 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/593353003/100001
6 years, 2 months ago (2014-09-26 22:27:50 UTC) #12
commit-bot: I haz the power
Committed patchset #6 (id:100001) as 5332e295e979f4bc2bb21a5c65beae590db491ba
6 years, 2 months ago (2014-09-26 22:32:20 UTC) #13
commit-bot: I haz the power
6 years, 2 months ago (2014-09-26 22:33:12 UTC) #14
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/b1f98f2be2a9b791754eaebbefe4ffa599aa8c0b
Cr-Commit-Position: refs/heads/master@{#297058}

Powered by Google App Engine
This is Rietveld 408576698