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

Issue 1189203003: Add UMA for consistency between TPM and install attributes. (Closed)

Created:
5 years, 6 months ago by Thiemo Nagel
Modified:
5 years, 5 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org, stevenjb+watch_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master3
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add UMA for consistency between TPM and install attributes. BUG=503941 TBR=stevenjb@chromium.org (for fake_cryptohome_client.cc) Committed: https://crrev.com/9ad56f55bb18f48ecced91751c0d9648c203451a Cr-Commit-Position: refs/heads/master@{#336348}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Improved version. #

Total comments: 30

Patch Set 3 : Address comments. #

Patch Set 4 : Simplified after comments by Mattias. #

Total comments: 26

Patch Set 5 : Applied more comments, prevent concurrent TPM locking through multiple LockDevice() calls. #

Total comments: 6

Patch Set 6 : Address more comments. #

Total comments: 10

Patch Set 7 : Address nit. #

Patch Set 8 : Cosmetics and compilation fix. #

Patch Set 9 : Rebase. #

Patch Set 10 : More compilation fixes. #

Patch Set 11 : Fix consistency check and device lock interplay. #

Patch Set 12 : Fix more tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+177 lines, -32 lines) Patch
M chrome/browser/chromeos/policy/browser_policy_connector_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +7 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/policy/enterprise_install_attributes.h View 1 2 3 4 5 6 7 8 9 5 chunks +32 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/policy/enterprise_install_attributes.cc View 1 2 3 4 5 6 7 8 9 10 13 chunks +83 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/policy/enterprise_install_attributes_unittest.cc View 1 2 3 4 5 6 7 8 9 12 chunks +15 lines, -15 lines 0 comments Download
M chromeos/dbus/fake_cryptohome_client.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 2 chunks +39 lines, -0 lines 0 comments Download

Messages

Total messages: 52 (20 generated)
Thiemo Nagel
Hi Mattias, my I kindly ask you to take a look at my first draft ...
5 years, 6 months ago (2015-06-18 17:26:16 UTC) #2
Mattias Nissler (ping if slow)
https://codereview.chromium.org/1189203003/diff/1/chrome/browser/chromeos/policy/enterprise_install_attributes.cc File chrome/browser/chromeos/policy/enterprise_install_attributes.cc (left): https://codereview.chromium.org/1189203003/diff/1/chrome/browser/chromeos/policy/enterprise_install_attributes.cc#oldcode71 chrome/browser/chromeos/policy/enterprise_install_attributes.cc:71: device_locked_ = true; You're changing semantics here. If the ...
5 years, 6 months ago (2015-06-19 07:32:45 UTC) #3
Thiemo Nagel
Thank you for your comments, Mattias! The new upload is tested and polished. Could you ...
5 years, 6 months ago (2015-06-19 17:47:04 UTC) #4
Mattias Nissler (ping if slow)
https://codereview.chromium.org/1189203003/diff/1/chrome/browser/chromeos/policy/enterprise_install_attributes.cc File chrome/browser/chromeos/policy/enterprise_install_attributes.cc (right): https://codereview.chromium.org/1189203003/diff/1/chrome/browser/chromeos/policy/enterprise_install_attributes.cc#newcode336 chrome/browser/chromeos/policy/enterprise_install_attributes.cc:336: void EnterpriseInstallAttributes::CheckConsistency() { On 2015/06/19 17:47:03, Thiemo Nagel wrote: ...
5 years, 6 months ago (2015-06-22 07:24:50 UTC) #5
Mattias Nissler (ping if slow)
On 2015/06/22 07:24:50, Mattias Nissler wrote: > https://codereview.chromium.org/1189203003/diff/1/chrome/browser/chromeos/policy/enterprise_install_attributes.cc > File chrome/browser/chromeos/policy/enterprise_install_attributes.cc (right): > > https://codereview.chromium.org/1189203003/diff/1/chrome/browser/chromeos/policy/enterprise_install_attributes.cc#newcode336 ...
5 years, 6 months ago (2015-06-23 11:34:01 UTC) #6
Mattias Nissler (ping if slow)
https://codereview.chromium.org/1189203003/diff/20001/chrome/browser/chromeos/policy/enterprise_install_attributes.cc File chrome/browser/chromeos/policy/enterprise_install_attributes.cc (right): https://codereview.chromium.org/1189203003/diff/20001/chrome/browser/chromeos/policy/enterprise_install_attributes.cc#newcode29 chrome/browser/chromeos/policy/enterprise_install_attributes.cc:29: int kDbusRetryIntervalInSeconds = 2; 2 seems a bit too ...
5 years, 6 months ago (2015-06-23 11:34:09 UTC) #7
Thiemo Nagel
Thank you! Could you please take another look? https://codereview.chromium.org/1189203003/diff/20001/chrome/browser/chromeos/policy/enterprise_install_attributes.cc File chrome/browser/chromeos/policy/enterprise_install_attributes.cc (right): https://codereview.chromium.org/1189203003/diff/20001/chrome/browser/chromeos/policy/enterprise_install_attributes.cc#newcode29 chrome/browser/chromeos/policy/enterprise_install_attributes.cc:29: int ...
5 years, 6 months ago (2015-06-23 13:17:56 UTC) #8
Mattias Nissler (ping if slow)
replying to replies... https://codereview.chromium.org/1189203003/diff/20001/chrome/browser/chromeos/policy/enterprise_install_attributes.cc File chrome/browser/chromeos/policy/enterprise_install_attributes.cc (right): https://codereview.chromium.org/1189203003/diff/20001/chrome/browser/chromeos/policy/enterprise_install_attributes.cc#newcode29 chrome/browser/chromeos/policy/enterprise_install_attributes.cc:29: int kDbusRetryIntervalInSeconds = 2; On 2015/06/23 ...
5 years, 6 months ago (2015-06-23 13:43:07 UTC) #9
Thiemo Nagel
Thank you. Could you please take another look? https://codereview.chromium.org/1189203003/diff/20001/chrome/browser/chromeos/policy/enterprise_install_attributes.cc File chrome/browser/chromeos/policy/enterprise_install_attributes.cc (right): https://codereview.chromium.org/1189203003/diff/20001/chrome/browser/chromeos/policy/enterprise_install_attributes.cc#newcode29 chrome/browser/chromeos/policy/enterprise_install_attributes.cc:29: int ...
5 years, 6 months ago (2015-06-23 16:05:04 UTC) #11
Mattias Nissler (ping if slow)
Looks much better already! https://codereview.chromium.org/1189203003/diff/80001/chrome/browser/chromeos/policy/enterprise_install_attributes.cc File chrome/browser/chromeos/policy/enterprise_install_attributes.cc (right): https://codereview.chromium.org/1189203003/diff/80001/chrome/browser/chromeos/policy/enterprise_install_attributes.cc#newcode82 chrome/browser/chromeos/policy/enterprise_install_attributes.cc:82: kDbusRetryDurationInSeconds / kDbusRetryIntervalInSeconds); Why not ...
5 years, 6 months ago (2015-06-24 08:34:39 UTC) #12
Thiemo Nagel
> Looks much better already! Very happy to hear that! :) Could you please take ...
5 years, 6 months ago (2015-06-24 10:43:36 UTC) #13
Mattias Nissler (ping if slow)
https://codereview.chromium.org/1189203003/diff/80001/chrome/browser/chromeos/policy/enterprise_install_attributes.cc File chrome/browser/chromeos/policy/enterprise_install_attributes.cc (right): https://codereview.chromium.org/1189203003/diff/80001/chrome/browser/chromeos/policy/enterprise_install_attributes.cc#newcode82 chrome/browser/chromeos/policy/enterprise_install_attributes.cc:82: kDbusRetryDurationInSeconds / kDbusRetryIntervalInSeconds); On 2015/06/24 10:43:36, Thiemo Nagel wrote: ...
5 years, 6 months ago (2015-06-24 11:55:03 UTC) #14
Thiemo Nagel
Again, thank you for your comments, and could you please take another look? https://codereview.chromium.org/1189203003/diff/80001/chrome/browser/chromeos/policy/enterprise_install_attributes.cc File ...
5 years, 6 months ago (2015-06-24 12:49:53 UTC) #16
Mattias Nissler (ping if slow)
This now LGTM, but please consider my optional nits inline. Happy to take another look ...
5 years, 6 months ago (2015-06-24 13:26:06 UTC) #17
Thiemo Nagel
Hi Ilya, while I sort out remaining nits with Mattias, may I kindly ask you ...
5 years, 6 months ago (2015-06-24 14:05:40 UTC) #19
Thiemo Nagel
https://codereview.chromium.org/1189203003/diff/130001/chrome/browser/chromeos/policy/enterprise_install_attributes.cc File chrome/browser/chromeos/policy/enterprise_install_attributes.cc (right): https://codereview.chromium.org/1189203003/diff/130001/chrome/browser/chromeos/policy/enterprise_install_attributes.cc#newcode206 chrome/browser/chromeos/policy/enterprise_install_attributes.cc:206: registration_running_ = true; On 2015/06/24 13:26:06, Mattias Nissler wrote: ...
5 years, 6 months ago (2015-06-24 15:27:40 UTC) #20
Mattias Nissler (ping if slow)
https://codereview.chromium.org/1189203003/diff/80001/chrome/browser/chromeos/policy/enterprise_install_attributes.cc File chrome/browser/chromeos/policy/enterprise_install_attributes.cc (right): https://codereview.chromium.org/1189203003/diff/80001/chrome/browser/chromeos/policy/enterprise_install_attributes.cc#newcode379 chrome/browser/chromeos/policy/enterprise_install_attributes.cc:379: state |= 0x8; On 2015/06/24 14:05:39, Thiemo Nagel wrote: ...
5 years, 6 months ago (2015-06-24 18:37:11 UTC) #21
Ilya Sherman
histograms lgtm
5 years, 6 months ago (2015-06-25 00:01:40 UTC) #22
Thiemo Nagel
https://codereview.chromium.org/1189203003/diff/80001/chrome/browser/chromeos/policy/enterprise_install_attributes.cc File chrome/browser/chromeos/policy/enterprise_install_attributes.cc (right): https://codereview.chromium.org/1189203003/diff/80001/chrome/browser/chromeos/policy/enterprise_install_attributes.cc#newcode379 chrome/browser/chromeos/policy/enterprise_install_attributes.cc:379: state |= 0x8; On 2015/06/24 18:37:10, Mattias Nissler wrote: ...
5 years, 6 months ago (2015-06-25 09:04:07 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1189203003/190001
5 years, 6 months ago (2015-06-25 09:07:22 UTC) #27
commit-bot: I haz the power
Dry run: Exceeded global retry quota
5 years, 6 months ago (2015-06-25 09:44:46 UTC) #29
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1189203003/230001
5 years, 5 months ago (2015-06-25 10:27:47 UTC) #32
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/32155)
5 years, 5 months ago (2015-06-25 11:47:24 UTC) #34
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1189203003/250001
5 years, 5 months ago (2015-06-25 12:04:18 UTC) #37
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1189203003/190002
5 years, 5 months ago (2015-06-25 12:44:55 UTC) #43
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/71924)
5 years, 5 months ago (2015-06-25 14:14:09 UTC) #45
Thiemo Nagel
Hi Mattias, getting the tests right required some more changes. Do you want to take ...
5 years, 5 months ago (2015-06-25 14:57:47 UTC) #46
Mattias Nissler (ping if slow)
I had already done so, still LGTM.
5 years, 5 months ago (2015-06-25 15:07:16 UTC) #47
Thiemo Nagel
On 2015/06/25 15:07:16, Mattias Nissler wrote: > I had already done so, still LGTM. Thanks ...
5 years, 5 months ago (2015-06-25 16:49:24 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1189203003/190002
5 years, 5 months ago (2015-06-26 09:30:57 UTC) #50
commit-bot: I haz the power
Committed patchset #12 (id:190002)
5 years, 5 months ago (2015-06-26 09:59:31 UTC) #51
commit-bot: I haz the power
5 years, 5 months ago (2015-06-26 10:00:33 UTC) #52
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/9ad56f55bb18f48ecced91751c0d9648c203451a
Cr-Commit-Position: refs/heads/master@{#336348}

Powered by Google App Engine
This is Rietveld 408576698