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 2719983002: Mash Session: Do not launch a browser service at startup (Closed)

Created:
3 years, 9 months ago by fwang
Modified:
3 years, 9 months ago
Reviewers:
sky
CC:
chromium-reviews, kalyank, sadrul, tonikitoo, James Cook, msw
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mash Session: Do not launch a browser service at startup After [1], mash_session is no longer needed by "chrome --mash" and the relevant services are explicitely launched by MashRunner. In particular the browser service was added back in [2]. Hence making mash_session launch a browser service a startup is not so important for developers. Hence this CL modifies mash_session to remove that behavior. [1] https://codereview.chromium.org/2646033002 [2] https://codereview.chromium.org/2686003002 BUG=None

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -3 lines) Patch
M chrome/test/base/mash_browser_tests_main.cc View 2 chunks +2 lines, -0 lines 2 comments Download
M mash/session/session.cc View 1 chunk +0 lines, -3 lines 2 comments Download

Messages

Total messages: 9 (6 generated)
fwang
PTAL IIUC, mash_session is now only launched from chrome/test/base/mash_browser_tests_main.cc or if one explicitly asks the ...
3 years, 9 months ago (2017-02-27 17:16:44 UTC) #7
sky
https://codereview.chromium.org/2719983002/diff/1/chrome/test/base/mash_browser_tests_main.cc File chrome/test/base/mash_browser_tests_main.cc (right): https://codereview.chromium.org/2719983002/diff/1/chrome/test/base/mash_browser_tests_main.cc#newcode49 chrome/test/base/mash_browser_tests_main.cc:49: connector->Connect(content::mojom::kPackagedServicesServiceName); Why are you changing this? https://codereview.chromium.org/2719983002/diff/1/mash/session/session.cc File mash/session/session.cc ...
3 years, 9 months ago (2017-02-28 04:17:58 UTC) #8
fwang
3 years, 9 months ago (2017-02-28 07:06:51 UTC) #9
https://codereview.chromium.org/2719983002/diff/1/chrome/test/base/mash_brows...
File chrome/test/base/mash_browser_tests_main.cc (right):

https://codereview.chromium.org/2719983002/diff/1/chrome/test/base/mash_brows...
chrome/test/base/mash_browser_tests_main.cc:49:
connector->Connect(content::mojom::kPackagedServicesServiceName);
On 2017/02/28 04:17:57, sky wrote:
> Why are you changing this?

This is only to preserve the behavior that browser service is launched.

https://codereview.chromium.org/2719983002/diff/1/mash/session/session.cc
File mash/session/session.cc (left):

https://codereview.chromium.org/2719983002/diff/1/mash/session/session.cc#old...
mash/session/session.cc:26: // Launch a chrome window for dev convience; don't
do this in the long term.
On 2017/02/28 04:17:57, sky wrote:
> I think it's still convenient to do this. In particular it can be useful to
> build chrome once, and then build mash:all. Is there a reason you don't want
to
> do this? If you don't want chrome launched you can just remove the executable.

No particular reason, I just saw this message again while reading the code and I
wondered whether it was still useful. I see your point for people working on
mash:all, so let's ignore this CL for now.

Powered by Google App Engine
This is Rietveld 408576698