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

Issue 23592024: Make the metro viewer responsible for relaunching browser in desktop mode. (Closed)

Created:
7 years, 3 months ago by zturner
Modified:
7 years, 3 months ago
CC:
chromium-reviews, stuartmorgan+watch_chromium.org, jam, sadrul, ben+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Make the metro viewer responsible for relaunching browser in desktop mode. Browsers can force a metro -> desktop transition by calling ShellExecuteEx with a special argument. However, the process that calls ShellExecute must itself be a metro process. This change implements that behavior. Without this change, triggering a relaunch in desktop mode while in ash would launch chrome in the desktop mode, but it would not automatically transition from metro to desktop. cpu@:*metro* bauerb@:chrome\browser\plugins\* sky@:ui\aura\* jschuh@:security review for ipc messages in ui\metro_viewer BUG=280377 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221075

Patch Set 1 #

Total comments: 10

Patch Set 2 : Compile out LaunchDesktopInstanceHelper on non-AURA and fix style issues. #

Total comments: 3

Patch Set 3 : Fix a few nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -15 lines) Patch
M chrome/browser/plugins/plugin_infobar_delegates.cc View 1 3 chunks +16 lines, -12 lines 0 comments Download
M ui/aura/remote_root_window_host_win.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ui/aura/remote_root_window_host_win.cc View 1 1 chunk +8 lines, -0 lines 0 comments Download
M ui/metro_viewer/metro_viewer_messages.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M win8/metro_driver/chrome_app_view_ash.h View 1 2 2 chunks +7 lines, -3 lines 0 comments Download
M win8/metro_driver/chrome_app_view_ash.cc View 1 2 4 chunks +23 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
zturner
7 years, 3 months ago (2013-08-30 00:42:40 UTC) #1
jschuh
ipc security lgtm. privileged process -> privileged process
7 years, 3 months ago (2013-08-30 03:25:02 UTC) #2
Bernhard Bauer
c/b/p LGTM. https://codereview.chromium.org/23592024/diff/1/ui/aura/remote_root_window_host_win.cc File ui/aura/remote_root_window_host_win.cc (right): https://codereview.chromium.org/23592024/diff/1/ui/aura/remote_root_window_host_win.cc#newcode176 ui/aura/remote_root_window_host_win.cc:176: const base::string16& shortcut, const base::string16& url) { ...
7 years, 3 months ago (2013-08-30 07:50:33 UTC) #3
sky
https://codereview.chromium.org/23592024/diff/1/chrome/browser/plugins/plugin_infobar_delegates.cc File chrome/browser/plugins/plugin_infobar_delegates.cc (right): https://codereview.chromium.org/23592024/diff/1/chrome/browser/plugins/plugin_infobar_delegates.cc#newcode498 chrome/browser/plugins/plugin_infobar_delegates.cc:498: base::FilePath shortcut_path( nit: 4 space indent is correct here ...
7 years, 3 months ago (2013-08-30 17:06:56 UTC) #4
zturner
https://codereview.chromium.org/23592024/diff/1/chrome/browser/plugins/plugin_infobar_delegates.cc File chrome/browser/plugins/plugin_infobar_delegates.cc (right): https://codereview.chromium.org/23592024/diff/1/chrome/browser/plugins/plugin_infobar_delegates.cc#newcode506 chrome/browser/plugins/plugin_infobar_delegates.cc:506: aura::RemoteRootWindowHostWin::Instance()->HandleOpenURLOnDesktop( On 2013/08/30 17:06:56, sky wrote: > What about ...
7 years, 3 months ago (2013-08-30 17:14:43 UTC) #5
zturner
https://codereview.chromium.org/23592024/diff/1/chrome/browser/plugins/plugin_infobar_delegates.cc File chrome/browser/plugins/plugin_infobar_delegates.cc (right): https://codereview.chromium.org/23592024/diff/1/chrome/browser/plugins/plugin_infobar_delegates.cc#newcode498 chrome/browser/plugins/plugin_infobar_delegates.cc:498: base::FilePath shortcut_path( On 2013/08/30 17:06:56, sky wrote: > nit: ...
7 years, 3 months ago (2013-08-30 18:10:05 UTC) #6
sky
LGTM
7 years, 3 months ago (2013-08-30 19:51:20 UTC) #7
Bernhard Bauer
LGTM w/ nits: https://codereview.chromium.org/23592024/diff/9001/win8/metro_driver/chrome_app_view_ash.cc File win8/metro_driver/chrome_app_view_ash.cc (right): https://codereview.chromium.org/23592024/diff/9001/win8/metro_driver/chrome_app_view_ash.cc#newcode518 win8/metro_driver/chrome_app_view_ash.cc:518: string16 file = shortcut.AsUTF16Unsafe(); You could ...
7 years, 3 months ago (2013-08-31 10:15:05 UTC) #8
cpu_(ooo_6.6-7.5)
lgtm https://codereview.chromium.org/23592024/diff/9001/win8/metro_driver/chrome_app_view_ash.cc File win8/metro_driver/chrome_app_view_ash.cc (right): https://codereview.chromium.org/23592024/diff/9001/win8/metro_driver/chrome_app_view_ash.cc#newcode525 win8/metro_driver/chrome_app_view_ash.cc:525: BOOL result = ShellExecuteEx(&sei); who knows what COM ...
7 years, 3 months ago (2013-09-03 17:55:11 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zturner@chromium.org/23592024/21001
7 years, 3 months ago (2013-09-03 20:39:01 UTC) #10
commit-bot: I haz the power
7 years, 3 months ago (2013-09-03 23:48:03 UTC) #11
Message was sent while issue was closed.
Change committed as 221075

Powered by Google App Engine
This is Rietveld 408576698