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

Issue 11299192: Ensure that Metro chrome in ASH is able to connect to an existing desktop chrome AURA process. (Closed)

Created:
8 years ago by ananta
Modified:
8 years ago
CC:
chromium-reviews
Visibility:
Public.

Description

Ensure that Metro chrome in ASH is able to connect to an existing desktop chrome AURA process. To achieve this the following changes were made. 1. Moved the MetroViewerProcessHost instance from the ChromeBrowserMainPartsWin class to the BrowserProcessImpl class. 2. We instantiate the MetroViewerProcessHost class as needed, i.e. when the command line for the current browser process specifies that a metro viewer is being created and when a chrome browser process delegates to an existing desktop chrome browser process passing in the metro viewer command line. 3. The functionality to process a commmand line is provided by the new virtual function PlatformSpecificCommandLineProcessing which is invoked during startup and when a newly launched chrome browser process delegates to an already running instance. I also added a call to CloseAsh in the channel error handling in the MetroViewerProcessHost class, to ensure that subsequent launches of Chrome Ash in metro succeed. BUG=151718 R=sky Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=169777

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 6

Patch Set 4 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -23 lines) Patch
M chrome/browser/browser_process.h View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/browser_process_impl.h View 1 2 3 3 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/browser_process_impl.cc View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
A chrome/browser/browser_process_impl_win.cc View 1 2 3 1 chunk +30 lines, -0 lines 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chrome_browser_main_win.h View 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/browser/chrome_browser_main_win.cc View 2 chunks +0 lines, -16 lines 0 comments Download
M chrome/browser/metro_viewer/metro_viewer_process_host_win.cc View 1 2 3 3 chunks +4 lines, -1 line 1 comment Download
M chrome/browser/process_singleton_win.cc View 1 2 3 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/base/testing_browser_process.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/base/testing_browser_process.cc View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
ananta
8 years ago (2012-11-27 03:09:50 UTC) #1
sky
I'm going to pass this to Ben, who I think understand all these pieces a ...
8 years ago (2012-11-27 16:30:49 UTC) #2
sky
Also note, I saw an AddRef without a corresponding ReleaseModule. Is that right?
8 years ago (2012-11-27 16:31:40 UTC) #3
Ben Goodger (Google)
https://codereview.chromium.org/11299192/diff/4002/chrome/browser/browser_process_impl.h File chrome/browser/browser_process_impl.h (right): https://codereview.chromium.org/11299192/diff/4002/chrome/browser/browser_process_impl.h#newcode275 chrome/browser/browser_process_impl.h:275: void PerformInitForWindowsAura(const CommandLine& command_line); nit: NL after https://codereview.chromium.org/11299192/diff/4002/chrome/browser/process_singleton_win.cc File ...
8 years ago (2012-11-27 16:56:41 UTC) #4
ananta
On 2012/11/27 16:31:40, sky wrote: > Also note, I saw an AddRef without a corresponding ...
8 years ago (2012-11-27 19:15:45 UTC) #5
ananta
https://codereview.chromium.org/11299192/diff/4002/chrome/browser/browser_process_impl.h File chrome/browser/browser_process_impl.h (right): https://codereview.chromium.org/11299192/diff/4002/chrome/browser/browser_process_impl.h#newcode275 chrome/browser/browser_process_impl.h:275: void PerformInitForWindowsAura(const CommandLine& command_line); On 2012/11/27 16:56:41, Ben Goodger ...
8 years ago (2012-11-27 19:16:03 UTC) #6
ananta
https://codereview.chromium.org/11299192/diff/10007/chrome/browser/metro_viewer/metro_viewer_process_host_win.cc File chrome/browser/metro_viewer/metro_viewer_process_host_win.cc (left): https://codereview.chromium.org/11299192/diff/10007/chrome/browser/metro_viewer/metro_viewer_process_host_win.cc#oldcode54 chrome/browser/metro_viewer/metro_viewer_process_host_win.cc:54: browser::CloseAllBrowsers(); Removed the call to CloseAllBrowsers as it closes ...
8 years ago (2012-11-27 19:17:24 UTC) #7
Ben Goodger (Google)
8 years ago (2012-11-27 19:25:31 UTC) #8
lgtm

Powered by Google App Engine
This is Rietveld 408576698