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

Issue 14761012: Updated SessionManagerClient to use the multi-profile user policy calls. (Closed)

Created:
7 years, 7 months ago by Joao da Silva
Modified:
7 years, 7 months ago
CC:
chromium-reviews, oshima+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org, Nikita (slow), Chris Masone
Visibility:
Public.

Description

Updated SessionManagerClient to use the multi-profile user policy calls. The SessionManagerClient is used to store and retrieve the user policy blobs to and from the session_manager over DBus. New variants of these calls have been introduced that have an additional 'username' argument, so that user policy can be used with multiple profiles. This CL updates the SessionManagerClient to use the new calls, and it also makes the SessionManagerClientStub mimic the behavior of session_manager regarding the user policy key, so that user policy can be validated and loaded on desktop builds. BUG=187482, 230349 TEST=User policy works as before, all tests green; user policy works with --multi-profiles, and on desktop builds with --login-manager Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=199861

Patch Set 1 #

Total comments: 20

Patch Set 2 : addressed comments #

Patch Set 3 : added TODO #

Unified diffs Side-by-side diffs Delta from patch set Stats (+263 lines, -281 lines) Patch
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/policy/power_policy_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chromeos.cc View 3 chunks +1 line, -9 lines 0 comments Download
M chrome/browser/chromeos/policy/user_cloud_policy_store_chromeos.cc View 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/policy/user_cloud_policy_store_chromeos_unittest.cc View 7 chunks +23 lines, -11 lines 0 comments Download
M chrome/browser/chromeos/settings/device_settings_test_helper.h View 1 chunk +6 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/settings/device_settings_test_helper.cc View 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/policy/cloud/cloud_policy_browsertest.cc View 1 8 chunks +14 lines, -79 lines 0 comments Download
M chrome/browser/policy/cloud/component_cloud_policy_browsertest.cc View 6 chunks +1 line, -79 lines 0 comments Download
M chromeos/dbus/cryptohome_client.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chromeos/dbus/cryptohome_client.cc View 1 2 chunks +7 lines, -1 line 0 comments Download
M chromeos/dbus/fake_session_manager_client.h View 1 3 chunks +10 lines, -6 lines 0 comments Download
M chromeos/dbus/fake_session_manager_client.cc View 1 3 chunks +16 lines, -9 lines 0 comments Download
M chromeos/dbus/mock_session_manager_client.h View 1 chunk +6 lines, -2 lines 0 comments Download
M chromeos/dbus/session_manager_client.h View 4 chunks +16 lines, -11 lines 0 comments Download
M chromeos/dbus/session_manager_client.cc View 1 2 7 chunks +138 lines, -66 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Joao da Silva
PTAL. I've manually verified that user policy works on desktop builds, on a chromeos image ...
7 years, 7 months ago (2013-05-08 14:15:46 UTC) #1
satorux1
chromeos/... LGTM I'd suggest to split the patch as it's big and 'chromeos' portion seems ...
7 years, 7 months ago (2013-05-10 05:58:40 UTC) #2
Mattias Nissler (ping if slow)
https://codereview.chromium.org/14761012/diff/1/chrome/browser/chromeos/login/login_utils_browsertest.cc File chrome/browser/chromeos/login/login_utils_browsertest.cc (right): https://codereview.chromium.org/14761012/diff/1/chrome/browser/chromeos/login/login_utils_browsertest.cc#newcode241 chrome/browser/chromeos/login/login_utils_browsertest.cc:241: MockSessionManagerClient* session_managed_client = while at it, can you fix ...
7 years, 7 months ago (2013-05-10 12:40:14 UTC) #3
Joao da Silva
@mnissler: PTAL https://codereview.chromium.org/14761012/diff/1/chrome/browser/chromeos/login/login_utils_browsertest.cc File chrome/browser/chromeos/login/login_utils_browsertest.cc (right): https://codereview.chromium.org/14761012/diff/1/chrome/browser/chromeos/login/login_utils_browsertest.cc#newcode241 chrome/browser/chromeos/login/login_utils_browsertest.cc:241: MockSessionManagerClient* session_managed_client = On 2013/05/10 12:40:15, Mattias ...
7 years, 7 months ago (2013-05-13 09:39:23 UTC) #4
Mattias Nissler (ping if slow)
https://codereview.chromium.org/14761012/diff/1/chromeos/dbus/session_manager_client.cc File chromeos/dbus/session_manager_client.cc (right): https://codereview.chromium.org/14761012/diff/1/chromeos/dbus/session_manager_client.cc#newcode516 chromeos/dbus/session_manager_client.cc:516: // can be tested on desktop builds. On 2013/05/13 ...
7 years, 7 months ago (2013-05-13 10:27:14 UTC) #5
Joao da Silva
Mattias, I'd like to land this as-is, and try to move the protobufs or introduce ...
7 years, 7 months ago (2013-05-13 10:54:19 UTC) #6
Mattias Nissler (ping if slow)
On 2013/05/13 10:54:19, Joao da Silva wrote: > Mattias, I'd like to land this as-is, ...
7 years, 7 months ago (2013-05-13 10:57:53 UTC) #7
Joao da Silva
We discussed offline how to make the protobufs visible, and agreed to move them to ...
7 years, 7 months ago (2013-05-13 16:44:24 UTC) #8
Mattias Nissler (ping if slow)
On 2013/05/13 16:44:24, Joao da Silva wrote: > We discussed offline how to make the ...
7 years, 7 months ago (2013-05-13 16:57:09 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/14761012/30001
7 years, 7 months ago (2013-05-13 17:01:52 UTC) #10
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=147768
7 years, 7 months ago (2013-05-13 19:32:31 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/14761012/30001
7 years, 7 months ago (2013-05-13 21:25:01 UTC) #12
commit-bot: I haz the power
7 years, 7 months ago (2013-05-14 00:12:04 UTC) #13
Message was sent while issue was closed.
Change committed as 199861

Powered by Google App Engine
This is Rietveld 408576698