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

Issue 2681663004: Mustash: Ignore --mash flag when comparing flags in UserSessionManager. (Closed)

Created:
3 years, 10 months ago by mfomitchev
Modified:
3 years, 10 months ago
CC:
chromium-reviews, alemate+watch_chromium.org, achuith+watch_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org, tonikitoo
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mustash: Ignore --mash flag when comparing flags in UserSessionManager. When running Mustash, the flags stored in Profile Prefs will contain --mash, while the browser command line will not (and should not) have it. Also, the browser restart functionality doesn't currently work in Mustash. So ignore --mash flag when comparing flags in UserSessionManager, and if there are other mismatches when running Mustash - just crash right away. Also adding the --mash flag to chrome_switches, since we are now using it in a few different places. BUG=NONE Review-Url: https://codereview.chromium.org/2681663004 Cr-Commit-Position: refs/heads/master@{#449442} Committed: https://chromium.googlesource.com/chromium/src/+/ca35d83a3e75630536fc1065068098ee1699877f

Patch Set 1 #

Total comments: 4

Patch Set 2 : Adding braces around the return. #

Patch Set 3 : Adding the --mash flag to chrome_switches. #

Total comments: 2

Patch Set 4 : Crashing Mustash if a flag mismatch other than --mash is detected. #

Patch Set 5 : Updating BUILD.gn #

Total comments: 9

Patch Set 6 : Addressing feedback. #

Total comments: 5

Patch Set 7 : Addressing feedback #

Total comments: 2

Patch Set 8 : Adding braces. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -11 lines) Patch
M chrome/app/chrome_main.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/app/mash/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/app/mash/DEPS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/app/mash/mash_runner.cc View 1 2 3 4 5 6 7 2 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -2 lines 2 comments Download
M chrome/browser/chromeos/login/session/user_session_manager.cc View 1 2 3 4 5 6 7 3 chunks +28 lines, -1 line 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 50 (23 generated)
mfomitchev
3 years, 10 months ago (2017-02-07 20:58:12 UTC) #2
James Cook
https://codereview.chromium.org/2681663004/diff/1/chrome/browser/chromeos/login/session/user_session_manager.cc File chrome/browser/chromeos/login/session/user_session_manager.cc (right): https://codereview.chromium.org/2681663004/diff/1/chrome/browser/chromeos/login/session/user_session_manager.cc#newcode301 chrome/browser/chromeos/login/session/user_session_manager.cc:301: version_info::Channel channel = chrome::GetChannel(); Is there any particular reason ...
3 years, 10 months ago (2017-02-07 21:07:32 UTC) #3
mfomitchev
I added the kMash flag, can you PTAL? https://codereview.chromium.org/2681663004/diff/1/chrome/browser/chromeos/login/session/user_session_manager.cc File chrome/browser/chromeos/login/session/user_session_manager.cc (right): https://codereview.chromium.org/2681663004/diff/1/chrome/browser/chromeos/login/session/user_session_manager.cc#newcode301 chrome/browser/chromeos/login/session/user_session_manager.cc:301: version_info::Channel ...
3 years, 10 months ago (2017-02-07 21:42:59 UTC) #5
James Cook
As discussed offline. Thanks for cleaning up the flag. One other nit. https://codereview.chromium.org/2681663004/diff/40001/chrome/app/chrome_main.cc File chrome/app/chrome_main.cc ...
3 years, 10 months ago (2017-02-07 22:07:44 UTC) #7
Rahul Chaturvedi
not lgtm for now - please address the following concerns before landing. Thanks! We can ...
3 years, 10 months ago (2017-02-07 22:07:54 UTC) #9
mfomitchev
On 2017/02/07 22:07:54, Rahul Chaturvedi wrote: > not lgtm for now - please address the ...
3 years, 10 months ago (2017-02-07 22:11:25 UTC) #10
Rahul Chaturvedi
Having a fatal check sounds good to me. Please do have a bug filed and ...
3 years, 10 months ago (2017-02-07 22:13:56 UTC) #11
mfomitchev
Feedback addressed, can you PTAL? https://codereview.chromium.org/2681663004/diff/40001/chrome/app/chrome_main.cc File chrome/app/chrome_main.cc (right): https://codereview.chromium.org/2681663004/diff/40001/chrome/app/chrome_main.cc#newcode105 chrome/app/chrome_main.cc:105: if (command_line->HasSwitch(switches::kMash)) On 2017/02/07 ...
3 years, 10 months ago (2017-02-08 19:02:13 UTC) #18
Rahul Chaturvedi
Latest patch looks great. lgtm. You'll still need alemate@'s lgtm for owners check.
3 years, 10 months ago (2017-02-08 19:05:16 UTC) #19
mfomitchev
+alemate for chrome/browser/chromeos/login/session/user_session_manager.cc +sky for chrome/app/
3 years, 10 months ago (2017-02-08 19:12:08 UTC) #22
James Cook
LGTM with a couple questions https://codereview.chromium.org/2681663004/diff/80001/chrome/app/mash/DEPS File chrome/app/mash/DEPS (right): https://codereview.chromium.org/2681663004/diff/80001/chrome/app/mash/DEPS#newcode8 chrome/app/mash/DEPS:8: "+chrome/common/chrome_switches.h", sky, are you ...
3 years, 10 months ago (2017-02-08 19:19:51 UTC) #23
Alexander Alekseev
https://codereview.chromium.org/2681663004/diff/80001/chrome/browser/chromeos/login/session/user_session_manager.cc File chrome/browser/chromeos/login/session/user_session_manager.cc (right): https://codereview.chromium.org/2681663004/diff/80001/chrome/browser/chromeos/login/session/user_session_manager.cc#newcode312 chrome/browser/chromeos/login/session/user_session_manager.cc:312: // right here. crbug.com/678683 crbug.com/678683 says about rebooting. This ...
3 years, 10 months ago (2017-02-08 19:23:39 UTC) #25
mfomitchev
https://codereview.chromium.org/2681663004/diff/80001/chrome/app/mash/mash_runner.cc File chrome/app/mash/mash_runner.cc (right): https://codereview.chromium.org/2681663004/diff/80001/chrome/app/mash/mash_runner.cc#newcode123 chrome/app/mash/mash_runner.cc:123: for (const auto sw : new_switches) On 2017/02/08 19:19:51, ...
3 years, 10 months ago (2017-02-08 20:39:24 UTC) #28
James Cook
https://codereview.chromium.org/2681663004/diff/80001/chrome/browser/chromeos/login/session/user_session_manager.cc File chrome/browser/chromeos/login/session/user_session_manager.cc (right): https://codereview.chromium.org/2681663004/diff/80001/chrome/browser/chromeos/login/session/user_session_manager.cc#newcode312 chrome/browser/chromeos/login/session/user_session_manager.cc:312: // right here. crbug.com/678683 On 2017/02/08 20:39:24, mfomitchev wrote: ...
3 years, 10 months ago (2017-02-08 20:46:07 UTC) #29
Rahul Chaturvedi
+1 on landing this CL the way it is. James, is there a doc or ...
3 years, 10 months ago (2017-02-08 21:20:56 UTC) #30
Alexander Alekseev
user_session_manager.cc lgtm https://codereview.chromium.org/2681663004/diff/80001/chrome/browser/chromeos/login/session/user_session_manager.cc File chrome/browser/chromeos/login/session/user_session_manager.cc (right): https://codereview.chromium.org/2681663004/diff/80001/chrome/browser/chromeos/login/session/user_session_manager.cc#newcode312 chrome/browser/chromeos/login/session/user_session_manager.cc:312: // right here. crbug.com/678683 On 2017/02/08 20:39:24, ...
3 years, 10 months ago (2017-02-08 21:41:57 UTC) #31
James Cook
On 2017/02/08 21:41:57, Alexander Alekseev wrote: > user_session_manager.cc lgtm > > https://codereview.chromium.org/2681663004/diff/80001/chrome/browser/chromeos/login/session/user_session_manager.cc > File chrome/browser/chromeos/login/session/user_session_manager.cc ...
3 years, 10 months ago (2017-02-08 22:15:30 UTC) #32
sky
https://codereview.chromium.org/2681663004/diff/100001/chrome/app/mash/mash_runner.cc File chrome/app/mash/mash_runner.cc (right): https://codereview.chromium.org/2681663004/diff/100001/chrome/app/mash/mash_runner.cc#newcode123 chrome/app/mash/mash_runner.cc:123: for (const auto& sw : new_switches) optional: don't use ...
3 years, 10 months ago (2017-02-08 23:30:36 UTC) #33
mfomitchev
https://codereview.chromium.org/2681663004/diff/100001/chrome/app/mash/mash_runner.cc File chrome/app/mash/mash_runner.cc (right): https://codereview.chromium.org/2681663004/diff/100001/chrome/app/mash/mash_runner.cc#newcode123 chrome/app/mash/mash_runner.cc:123: for (const auto& sw : new_switches) On 2017/02/08 23:30:36, ...
3 years, 10 months ago (2017-02-09 01:10:33 UTC) #34
sky
LGTM https://codereview.chromium.org/2681663004/diff/100001/chrome/common/chrome_switches.h File chrome/common/chrome_switches.h (right): https://codereview.chromium.org/2681663004/diff/100001/chrome/common/chrome_switches.h#newcode169 chrome/common/chrome_switches.h:169: extern const char kMash[]; On 2017/02/09 01:10:33, mfomitchev ...
3 years, 10 months ago (2017-02-09 17:20:48 UTC) #35
mfomitchev
https://codereview.chromium.org/2681663004/diff/120001/chrome/app/mash/mash_runner.cc File chrome/app/mash/mash_runner.cc (right): https://codereview.chromium.org/2681663004/diff/120001/chrome/app/mash/mash_runner.cc#newcode124 chrome/app/mash/mash_runner.cc:124: new_switches) On 2017/02/09 17:20:48, sky wrote: > {} Done.
3 years, 10 months ago (2017-02-09 20:28:21 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2681663004/120001
3 years, 10 months ago (2017-02-09 20:29:00 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2681663004/140001
3 years, 10 months ago (2017-02-09 21:13:51 UTC) #43
commit-bot: I haz the power
Committed patchset #8 (id:140001) as https://chromium.googlesource.com/chromium/src/+/ca35d83a3e75630536fc1065068098ee1699877f
3 years, 10 months ago (2017-02-09 22:42:10 UTC) #46
fwang
https://codereview.chromium.org/2681663004/diff/140001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/2681663004/diff/140001/chrome/browser/about_flags.cc#newcode932 chrome/browser/about_flags.cc:932: #endif // BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) This change broke the LinuxOS/Ozone build ...
3 years, 10 months ago (2017-02-10 07:22:33 UTC) #48
fwang
On 2017/02/10 07:22:33, fwang wrote: > For consistency, I guess we should > either leave ...
3 years, 10 months ago (2017-02-10 08:49:17 UTC) #49
mfomitchev
3 years, 10 months ago (2017-02-10 14:10:29 UTC) #50
Message was sent while issue was closed.
https://codereview.chromium.org/2681663004/diff/140001/chrome/browser/about_f...
File chrome/browser/about_flags.cc (right):

https://codereview.chromium.org/2681663004/diff/140001/chrome/browser/about_f...
chrome/browser/about_flags.cc:932: #endif  //
BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES)
Thanks for looking into this!

Powered by Google App Engine
This is Rietveld 408576698