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

Issue 16770002: Restart Chrome if per session flags have been specified on ChromeOS. (Closed)

Created:
7 years, 6 months ago by pastarmovj
Modified:
7 years, 6 months ago
CC:
chromium-reviews, oshima+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org, Denis Kuznetsov (DE-MUC)
Visibility:
Public.

Description

Restart Chrome if per session flags have been specified on ChromeOS. After the profile is loaded we verify if the user has specfied any flags or if there were flags specified per policy that differ from the user specfied flags and in either case restart Chrome with the desired flags. This allows non-owners to use the about:flags page and prevents policy set flags from leaking inside user sessions. BUG=221352 TEST=unit_tests & Manually by specifying flags in non-owner session and observing them respected. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=206832

Patch Set 1 : . #

Total comments: 19

Patch Set 2 : Addressed comments from Mattias. #

Patch Set 3 : Fixed set intersection computation. #

Total comments: 6

Patch Set 4 : Replace set_symmetric_difference with equals. #

Total comments: 4

Patch Set 5 : Rebased to ToT and addressed Nico's comments. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -4 lines) Patch
M chrome/browser/about_flags.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 3 chunks +48 lines, -0 lines 0 comments Download
M chrome/browser/about_flags_unittest.cc View 1 2 3 4 1 chunk +28 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/login_utils.cc View 1 2 3 4 3 chunks +17 lines, -3 lines 1 comment Download
M chrome/browser/chromeos/settings/device_settings_test_helper.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/settings/device_settings_test_helper.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chromeos/dbus/fake_session_manager_client.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chromeos/dbus/fake_session_manager_client.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chromeos/dbus/mock_session_manager_client.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chromeos/dbus/session_manager_client.h View 1 2 chunks +6 lines, -1 line 0 comments Download
M chromeos/dbus/session_manager_client.cc View 1 2 2 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
pastarmovj
Hi guys please review this CL part of the effort to introduce about:flags for non-owners ...
7 years, 6 months ago (2013-06-11 15:07:18 UTC) #1
Mattias Nissler (ping if slow)
https://codereview.chromium.org/16770002/diff/9001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/16770002/diff/9001/chrome/browser/about_flags.cc#newcode1767 chrome/browser/about_flags.cc:1767: bool CompareSwitchesToCurrentCommandLine(const CommandLine& new_cmdline, Not using this here? Maybe ...
7 years, 6 months ago (2013-06-12 14:53:03 UTC) #2
pastarmovj
Thanks for the review Mattias! PTAL. https://codereview.chromium.org/16770002/diff/9001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/16770002/diff/9001/chrome/browser/about_flags.cc#newcode1767 chrome/browser/about_flags.cc:1767: bool CompareSwitchesToCurrentCommandLine(const CommandLine& ...
7 years, 6 months ago (2013-06-12 16:19:32 UTC) #3
Mattias Nissler (ping if slow)
code-wise LGTM with nits https://codereview.chromium.org/16770002/diff/9001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/16770002/diff/9001/chrome/browser/about_flags.cc#newcode1767 chrome/browser/about_flags.cc:1767: bool CompareSwitchesToCurrentCommandLine(const CommandLine& new_cmdline, On ...
7 years, 6 months ago (2013-06-13 16:55:57 UTC) #4
pastarmovj
Mattias, thanks for the review. Nico, Dave: a gentle ping :) https://codereview.chromium.org/16770002/diff/9001/chrome/browser/chromeos/login/login_utils.cc File chrome/browser/chromeos/login/login_utils.cc (right): ...
7 years, 6 months ago (2013-06-13 17:29:36 UTC) #5
Nico
Two minor comments. Also, s/Chorme/Chrome/ in the CL description. https://codereview.chromium.org/16770002/diff/32001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/16770002/diff/32001/chrome/browser/about_flags.cc#newcode98 chrome/browser/about_flags.cc:98: ...
7 years, 6 months ago (2013-06-13 17:59:57 UTC) #6
pastarmovj
Thanks! PTAL. https://codereview.chromium.org/16770002/diff/32001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/16770002/diff/32001/chrome/browser/about_flags.cc#newcode98 chrome/browser/about_flags.cc:98: return result; On 2013/06/13 17:59:57, Nico wrote: ...
7 years, 6 months ago (2013-06-14 11:40:37 UTC) #7
Nico
lgtm (It's easier for reviewers if you rebase and address comments in separate patch sets ...
7 years, 6 months ago (2013-06-14 17:36:54 UTC) #8
DaveMoore
lgtm
7 years, 6 months ago (2013-06-17 16:55:59 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pastarmovj@chromium.org/16770002/39001
7 years, 6 months ago (2013-06-17 19:32:53 UTC) #10
commit-bot: I haz the power
Change committed as 206832
7 years, 6 months ago (2013-06-17 23:35:52 UTC) #11
Dmitry Polukhin
I would revert this change. https://chromiumcodereview.appspot.com/16770002/diff/39001/chrome/browser/chromeos/login/login_utils.cc File chrome/browser/chromeos/login/login_utils.cc (right): https://chromiumcodereview.appspot.com/16770002/diff/39001/chrome/browser/chromeos/login/login_utils.cc#newcode294 chrome/browser/chromeos/login/login_utils.cc:294: DBusThreadManager::Get()->GetSessionManagerClient()->SetFlagsForUser( This changes broke ...
7 years, 6 months ago (2013-06-18 13:12:40 UTC) #12
Dmitry Polukhin
I found easy solution how to fix LMU creation flow, CL uis under review https://codereview.chromium.org/17346003
7 years, 6 months ago (2013-06-18 13:57:39 UTC) #13
Mattias Nissler (ping if slow)
On Tue, Jun 18, 2013 at 3:12 PM, <dpolukhin@chromium.org> wrote: > I would revert this ...
7 years, 6 months ago (2013-06-18 14:56:23 UTC) #14
Dmitry Polukhin
7 years, 6 months ago (2013-06-18 15:04:59 UTC) #15
Message was sent while issue was closed.
I always see black splash and long login time. Filed issue
https://code.google.com/p/chromium/issues/detail?id=251261

Powered by Google App Engine
This is Rietveld 408576698