|
|
Chromium Code Reviews|
Created:
3 years, 12 months ago by Thiemo Nagel Modified:
3 years, 11 months ago CC:
chromium-reviews, hashimoto+watch_chromium.org, oshima+watch_chromium.org Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionAdd fake implementation for AuthPolicyClient::RefreshUserPolicy()
Also switch from std::string to AccountId argument for
RefreshUserPolicy().
BUG=655971
Committed: https://crrev.com/51accc46a09dfc282f23672b0385b57948a5ff30
Cr-Commit-Position: refs/heads/master@{#440845}
Patch Set 1 #Patch Set 2 : Share code between writing of fake user and device policy #
Total comments: 6
Patch Set 3 : CHECK on serialization errors #
Messages
Total messages: 31 (20 generated)
The CQ bit was checked by tnagel@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by tnagel@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by tnagel@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
tnagel@chromium.org changed reviewers: + rsorokin@chromium.org
Hi Roman, could you please take a look at chromeos/dbus/*? Thank you, Thiemo
tnagel@chromium.org changed reviewers: + stevenjb@chromium.org
Hi Steven, could you please take a look at BUILD.gn? Thank you, Thiemo
Clarify the description to say 'Add Fake implementation for...' (Strictly speaking the Fake implementation doesn't really have anything to do with Linux, that's just where we tend to use it).
LGTM
Description was changed from ========== Add Linux stub for AuthPolicyClient::RefreshUserPolicy() Also switch from std::string to AccountId argument for RefreshUserPolicy(). BUG=655971 ========== to ========== Add fake implementation for AuthPolicyClient::RefreshUserPolicy() Also switch from std::string to AccountId argument for RefreshUserPolicy(). BUG=655971 ==========
On 2016/12/27 19:40:41, stevenjb wrote: > Clarify the description to say 'Add Fake implementation for...' > > (Strictly speaking the Fake implementation doesn't really have anything to do > with Linux, that's just where we tend to use it). Thanks, that makes sense.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
https://codereview.chromium.org/2607593002/diff/20001/chromeos/dbus/fake_auth... File chromeos/dbus/fake_auth_policy_client.cc (right): https://codereview.chromium.org/2607593002/diff/20001/chromeos/dbus/fake_auth... chromeos/dbus/fake_auth_policy_client.cc:31: const std::string& policy_type) { Maybe add DCHECK(base::WorkerPool::GetTaskRunner(false /* task_is_slow */)->RunsTasksOnCurrentThread()); https://codereview.chromium.org/2607593002/diff/20001/chromeos/dbus/fake_auth... chromeos/dbus/fake_auth_policy_client.cc:117: em::CloudPolicySettings policy; Do we write just an empty policy? https://codereview.chromium.org/2607593002/diff/20001/chromeos/dbus/fake_auth... chromeos/dbus/fake_auth_policy_client.cc:119: policy.SerializeToString(&payload); Should we check for result here?
Patchset #3 (id:40001) has been deleted
The CQ bit was checked by tnagel@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Thank you! Could you please take another look? https://codereview.chromium.org/2607593002/diff/20001/chromeos/dbus/fake_auth... File chromeos/dbus/fake_auth_policy_client.cc (right): https://codereview.chromium.org/2607593002/diff/20001/chromeos/dbus/fake_auth... chromeos/dbus/fake_auth_policy_client.cc:31: const std::string& policy_type) { On 2016/12/28 10:29:38, Roman Sorokin wrote: > Maybe add > DCHECK(base::WorkerPool::GetTaskRunner(false /* task_is_slow > */)->RunsTasksOnCurrentThread()); I don't think this is necessary as the file operations blow up anyways if they're run on the wrong thread. https://codereview.chromium.org/2607593002/diff/20001/chromeos/dbus/fake_auth... chromeos/dbus/fake_auth_policy_client.cc:117: em::CloudPolicySettings policy; On 2016/12/28 10:29:38, Roman Sorokin wrote: > Do we write just an empty policy? Yes. I'm reluctant writing actual policy values because it might interfere with tests or create confusion in some other way. https://codereview.chromium.org/2607593002/diff/20001/chromeos/dbus/fake_auth... chromeos/dbus/fake_auth_policy_client.cc:119: policy.SerializeToString(&payload); On 2016/12/28 10:29:38, Roman Sorokin wrote: > Should we check for result here? I've added CHECK()s.
lgtm
The CQ bit was unchecked by tnagel@chromium.org
The CQ bit was checked by tnagel@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from stevenjb@chromium.org Link to the patchset: https://codereview.chromium.org/2607593002/#ps60001 (title: "CHECK on serialization errors")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 60001, "attempt_start_ts": 1482924155359170,
"parent_rev": "e2104de7aa63008f7af04a153d071a1ec5cbf875", "commit_rev":
"1cd14a38d991714ebe4f158726591d25c0ff1a3d"}
Message was sent while issue was closed.
Description was changed from ========== Add fake implementation for AuthPolicyClient::RefreshUserPolicy() Also switch from std::string to AccountId argument for RefreshUserPolicy(). BUG=655971 ========== to ========== Add fake implementation for AuthPolicyClient::RefreshUserPolicy() Also switch from std::string to AccountId argument for RefreshUserPolicy(). BUG=655971 Review-Url: https://codereview.chromium.org/2607593002 ==========
Message was sent while issue was closed.
Committed patchset #3 (id:60001)
Message was sent while issue was closed.
Description was changed from ========== Add fake implementation for AuthPolicyClient::RefreshUserPolicy() Also switch from std::string to AccountId argument for RefreshUserPolicy(). BUG=655971 Review-Url: https://codereview.chromium.org/2607593002 ========== to ========== Add fake implementation for AuthPolicyClient::RefreshUserPolicy() Also switch from std::string to AccountId argument for RefreshUserPolicy(). BUG=655971 Committed: https://crrev.com/51accc46a09dfc282f23672b0385b57948a5ff30 Cr-Commit-Position: refs/heads/master@{#440845} ==========
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/51accc46a09dfc282f23672b0385b57948a5ff30 Cr-Commit-Position: refs/heads/master@{#440845} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
