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

Issue 23513049: Implement install module verification metric. (Closed)

Created:
7 years, 3 months ago by erikwright (departed)
Modified:
7 years, 2 months ago
CC:
chromium-reviews, Alexei Svitkine (slow)
Visibility:
Public.

Description

Implement install module verification metric. BUG=297675 NOTRY=True Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=227542

Patch Set 1 #

Total comments: 22

Patch Set 2 : Reviewer comments. #

Total comments: 8

Patch Set 3 : Reviewer comments. #

Total comments: 6

Patch Set 4 : Reviewer comments. #

Patch Set 5 : Reviewer comments. #

Patch Set 6 : Reviewer comments. #

Total comments: 6

Patch Set 7 : Merge and final nits. #

Total comments: 22

Patch Set 8 : Refactor, wstring to string16 #

Patch Set 9 : Comments. #

Patch Set 10 : Comments. #

Total comments: 18

Patch Set 11 : Reviewer comments. #

Total comments: 4

Patch Set 12 : Reviewer comments. #

Patch Set 13 : Convert to store name digests rather than names. #

Patch Set 14 : Remove obsolete file. #

Patch Set 15 : Convert to a resource-based solution. #

Patch Set 16 : Additional tests. #

Total comments: 7

Patch Set 17 : Reviewer comments. #

Patch Set 18 : Remove legacy code/includes. IWYU. #

Patch Set 19 : Change file location. #

Patch Set 20 : Update to support varied EOLs. #

Patch Set 21 : Line length. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+442 lines, -0 lines) Patch
M chrome/browser/browser_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chrome_browser_main_win.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chrome_browser_main_win.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +14 lines, -0 lines 0 comments Download
A chrome/browser/install_module_verifier_unittest_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +156 lines, -0 lines 0 comments Download
A chrome/browser/install_module_verifier_win.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +48 lines, -0 lines 0 comments Download
A chrome/browser/install_module_verifier_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +219 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 52 (0 generated)
erikwright (departed)
PTAL. I added a few comments for things I already need to do. MAD, I'll ...
7 years, 3 months ago (2013-09-13 14:47:07 UTC) #1
robertshield
https://codereview.chromium.org/23513049/diff/1/chrome/browser/expected_install_modules_win.cc File chrome/browser/expected_install_modules_win.cc (right): https://codereview.chromium.org/23513049/diff/1/chrome/browser/expected_install_modules_win.cc#newcode9 chrome/browser/expected_install_modules_win.cc:9: } minor nit, move kExpectedInstallModuleDigests up https://codereview.chromium.org/23513049/diff/1/chrome/browser/expected_install_modules_win.h File chrome/browser/expected_install_modules_win.h ...
7 years, 3 months ago (2013-09-13 17:26:05 UTC) #2
robertshield
Also, code looks awesome :-) (hit publish too quickly)
7 years, 3 months ago (2013-09-13 17:26:41 UTC) #3
MAD
I have a few comments, but I'm not done yet... I was interrupted with a ...
7 years, 3 months ago (2013-09-13 20:15:33 UTC) #4
erikwright (departed)
https://codereview.chromium.org/23513049/diff/1/chrome/browser/chrome_browser_main_win.cc File chrome/browser/chrome_browser_main_win.cc (right): https://codereview.chromium.org/23513049/diff/1/chrome/browser/chrome_browser_main_win.cc#newcode232 chrome/browser/chrome_browser_main_win.cc:232: On 2013/09/13 14:47:07, erikwright wrote: > remove one blank ...
7 years, 3 months ago (2013-09-13 20:19:55 UTC) #5
MAD
https://codereview.chromium.org/23513049/diff/1/chrome/browser/install_module_verifier_win.cc File chrome/browser/install_module_verifier_win.cc (right): https://codereview.chromium.org/23513049/diff/1/chrome/browser/install_module_verifier_win.cc#newcode92 chrome/browser/install_module_verifier_win.cc:92: for (size_t i = 0; kExpectedInstallModuleDigests[i] != 0; ++i) ...
7 years, 3 months ago (2013-09-13 20:34:38 UTC) #6
erikwright (departed)
On 2013/09/13 20:34:38, MAD wrote: > https://codereview.chromium.org/23513049/diff/1/chrome/browser/install_module_verifier_win.cc > File chrome/browser/install_module_verifier_win.cc (right): > > https://codereview.chromium.org/23513049/diff/1/chrome/browser/install_module_verifier_win.cc#newcode92 > ...
7 years, 3 months ago (2013-09-13 20:39:52 UTC) #7
MAD
D'Ho! Sorry about that... I forgot about the extern declaration... My goof... Move along.. :-) ...
7 years, 3 months ago (2013-09-13 20:42:59 UTC) #8
MAD
Some more minor comments... Very well done... Thanks! BYE MAD https://codereview.chromium.org/23513049/diff/12001/chrome/browser/install_module_verifier_win.cc File chrome/browser/install_module_verifier_win.cc (right): https://codereview.chromium.org/23513049/diff/12001/chrome/browser/install_module_verifier_win.cc#newcode72 ...
7 years, 3 months ago (2013-09-16 00:26:14 UTC) #9
MAD
One more small thing that I just thought about... BYE MAD https://codereview.chromium.org/23513049/diff/12001/chrome/browser/install_module_verifier_win.h File chrome/browser/install_module_verifier_win.h (right): ...
7 years, 3 months ago (2013-09-16 13:47:01 UTC) #10
MAD
One more thing... https://codereview.chromium.org/23513049/diff/12001/chrome/browser/expected_install_modules_win.cc File chrome/browser/expected_install_modules_win.cc (right): https://codereview.chromium.org/23513049/diff/12001/chrome/browser/expected_install_modules_win.cc#newcode32 chrome/browser/expected_install_modules_win.cc:32: size_t slash = module_name.rfind('/'); On windows, ...
7 years, 3 months ago (2013-09-16 14:42:43 UTC) #11
robertshield
https://codereview.chromium.org/23513049/diff/1/chrome/browser/install_module_verifier_win.h File chrome/browser/install_module_verifier_win.h (right): https://codereview.chromium.org/23513049/diff/1/chrome/browser/install_module_verifier_win.h#newcode14 chrome/browser/install_module_verifier_win.h:14: void InitiateInstalledModuleVerification(); On 2013/09/13 17:26:05, robertshield wrote: > naming ...
7 years, 3 months ago (2013-09-16 15:07:20 UTC) #12
erikwright (departed)
PTAL. https://codereview.chromium.org/23513049/diff/1/chrome/browser/install_module_verifier_unittest_win.cc File chrome/browser/install_module_verifier_unittest_win.cc (right): https://codereview.chromium.org/23513049/diff/1/chrome/browser/install_module_verifier_unittest_win.cc#newcode45 chrome/browser/install_module_verifier_unittest_win.cc:45: ASSERT_TRUE(reported_ids.empty()); On 2013/09/13 20:15:33, MAD wrote: > These ...
7 years, 3 months ago (2013-09-16 20:04:54 UTC) #13
erikwright (departed)
MAD/Robert: Ping.
7 years, 3 months ago (2013-09-17 14:37:46 UTC) #14
MAD
OK, LGTM with a last set of small potential nits... Thanks! BYE MAD https://codereview.chromium.org/23513049/diff/16001/chrome/browser/expected_install_modules_win.cc File ...
7 years, 3 months ago (2013-09-17 15:20:20 UTC) #15
robertshield
LGTM, please address comment from earlier revision. https://codereview.chromium.org/23513049/diff/27001/chrome/browser/expected_install_modules_win.cc File chrome/browser/expected_install_modules_win.cc (right): https://codereview.chromium.org/23513049/diff/27001/chrome/browser/expected_install_modules_win.cc#newcode9 chrome/browser/expected_install_modules_win.cc:9: // reporting. ...
7 years, 3 months ago (2013-09-17 17:06:58 UTC) #16
erikwright (departed)
https://codereview.chromium.org/23513049/diff/27001/chrome/browser/expected_install_modules_win.cc File chrome/browser/expected_install_modules_win.cc (right): https://codereview.chromium.org/23513049/diff/27001/chrome/browser/expected_install_modules_win.cc#newcode9 chrome/browser/expected_install_modules_win.cc:9: // reporting. On 2013/09/17 17:06:59, robertshield wrote: > On ...
7 years, 3 months ago (2013-09-17 17:20:52 UTC) #17
robertshield
still LGTM https://codereview.chromium.org/23513049/diff/27001/chrome/browser/expected_install_modules_win.cc File chrome/browser/expected_install_modules_win.cc (right): https://codereview.chromium.org/23513049/diff/27001/chrome/browser/expected_install_modules_win.cc#newcode9 chrome/browser/expected_install_modules_win.cc:9: // reporting. On 2013/09/17 17:20:52, erikwright wrote: ...
7 years, 3 months ago (2013-09-17 17:28:02 UTC) #18
erikwright (departed)
Scott, PTAL. Finnur, FYI for usage of EnumerateModulesModel.
7 years, 3 months ago (2013-09-19 20:24:48 UTC) #19
sky
https://codereview.chromium.org/23513049/diff/8001/chrome/browser/expected_install_modules_win.cc File chrome/browser/expected_install_modules_win.cc (right): https://codereview.chromium.org/23513049/diff/8001/chrome/browser/expected_install_modules_win.cc#newcode9 chrome/browser/expected_install_modules_win.cc:9: // DO NOT REORDER THESE ELEMENTS. Their index is ...
7 years, 3 months ago (2013-09-19 20:54:35 UTC) #20
Finnur
General comments: Guess you didn't need to modify the EnumerateModulesModel classes? Neat. You are missing ...
7 years, 3 months ago (2013-09-20 14:23:13 UTC) #21
erikwright (departed)
PTAL. +asvitkine, FYI. https://codereview.chromium.org/23513049/diff/8001/chrome/browser/chrome_browser_main_win.cc File chrome/browser/chrome_browser_main_win.cc (right): https://codereview.chromium.org/23513049/diff/8001/chrome/browser/chrome_browser_main_win.cc#newcode230 chrome/browser/chrome_browser_main_win.cc:230: BeginModuleVerification(); On 2013/09/20 14:23:14, Finnur wrote: ...
7 years, 3 months ago (2013-09-24 17:33:50 UTC) #22
Alexei Svitkine (slow)
LGTM with a nit https://codereview.chromium.org/23513049/diff/73001/chrome/browser/install_module_verifier_win.cc File chrome/browser/install_module_verifier_win.cc (right): https://codereview.chromium.org/23513049/diff/73001/chrome/browser/install_module_verifier_win.cc#newcode28 chrome/browser/install_module_verifier_win.cc:28: void OnModuleMatch(size_t module_id) { Nit: ...
7 years, 3 months ago (2013-09-24 18:52:24 UTC) #23
sky
https://codereview.chromium.org/23513049/diff/73001/chrome/browser/chrome_browser_main_win.cc File chrome/browser/chrome_browser_main_win.cc (right): https://codereview.chromium.org/23513049/diff/73001/chrome/browser/chrome_browser_main_win.cc#newcode232 chrome/browser/chrome_browser_main_win.cc:232: content::BrowserThread::GetMessageLoopProxyForThread( Why do we need to delay here? Assuming ...
7 years, 3 months ago (2013-09-24 20:16:15 UTC) #24
Finnur
https://codereview.chromium.org/23513049/diff/8001/chrome/browser/install_module_verifier_win.cc File chrome/browser/install_module_verifier_win.cc (right): https://codereview.chromium.org/23513049/diff/8001/chrome/browser/install_module_verifier_win.cc#newcode90 chrome/browser/install_module_verifier_win.cc:90: std::wstring module_name = base::UTF8ToWide(utf8_module_name); Hmmm, I didn't realize we ...
7 years, 2 months ago (2013-09-25 12:54:21 UTC) #25
Finnur
Forgot: LGTM.
7 years, 2 months ago (2013-09-25 12:54:45 UTC) #26
erikwright (departed)
PTAL. https://codereview.chromium.org/23513049/diff/73001/chrome/browser/chrome_browser_main_win.cc File chrome/browser/chrome_browser_main_win.cc (right): https://codereview.chromium.org/23513049/diff/73001/chrome/browser/chrome_browser_main_win.cc#newcode232 chrome/browser/chrome_browser_main_win.cc:232: content::BrowserThread::GetMessageLoopProxyForThread( On 2013/09/24 20:16:16, sky wrote: > Why ...
7 years, 2 months ago (2013-09-25 19:58:07 UTC) #27
erikwright (departed)
sky: PTAL.
7 years, 2 months ago (2013-09-27 19:50:19 UTC) #28
sky
Please reupload as patchset didn't make it up correctly.
7 years, 2 months ago (2013-09-27 20:54:14 UTC) #29
erikwright (departed)
sky@: PTAL. New patchset, also adapted to a resource-based approach.
7 years, 2 months ago (2013-10-04 16:47:30 UTC) #30
sky
https://codereview.chromium.org/23513049/diff/73001/chrome/browser/install_module_verifier_win.h File chrome/browser/install_module_verifier_win.h (right): https://codereview.chromium.org/23513049/diff/73001/chrome/browser/install_module_verifier_win.h#newcode29 chrome/browser/install_module_verifier_win.h:29: const base::Callback<void(size_t)>& delegate); On 2013/09/25 19:58:08, erikwright wrote: > ...
7 years, 2 months ago (2013-10-04 18:20:46 UTC) #31
erikwright (departed)
Take a look at the unit tests. They bind in a vector where the response ...
7 years, 2 months ago (2013-10-04 18:26:20 UTC) #32
robertshield
lg, one question, one nit https://codereview.chromium.org/23513049/diff/120001/chrome/browser/browser_resources.grd File chrome/browser/browser_resources.grd (right): https://codereview.chromium.org/23513049/diff/120001/chrome/browser/browser_resources.grd#newcode394 chrome/browser/browser_resources.grd:394: <include name="IDR_ADDITIONAL_MODULES_LIST" file="internal\resources\browser\additional_modules_list.txt" type="BINDATA" ...
7 years, 2 months ago (2013-10-04 19:12:13 UTC) #33
sky
On 2013/10/04 18:26:20, erikwright wrote: > Take a look at the unit tests. They bind ...
7 years, 2 months ago (2013-10-04 19:16:53 UTC) #34
sky
https://codereview.chromium.org/23513049/diff/120001/chrome/browser/install_module_verifier_win.cc File chrome/browser/install_module_verifier_win.cc (right): https://codereview.chromium.org/23513049/diff/120001/chrome/browser/install_module_verifier_win.cc#newcode87 chrome/browser/install_module_verifier_win.cc:87: InstallModuleVerifier() { nit: constructor/destructor before other methods in a ...
7 years, 2 months ago (2013-10-04 19:21:53 UTC) #35
erikwright (departed)
PTAL. https://codereview.chromium.org/23513049/diff/120001/chrome/browser/install_module_verifier_win.cc File chrome/browser/install_module_verifier_win.cc (right): https://codereview.chromium.org/23513049/diff/120001/chrome/browser/install_module_verifier_win.cc#newcode87 chrome/browser/install_module_verifier_win.cc:87: InstallModuleVerifier() { On 2013/10/04 19:21:54, sky wrote: > ...
7 years, 2 months ago (2013-10-04 20:39:37 UTC) #36
erikwright (departed)
On 2013/10/04 19:16:53, sky wrote: > On 2013/10/04 18:26:20, erikwright wrote: > > Take a ...
7 years, 2 months ago (2013-10-04 20:39:57 UTC) #37
sky
LGTM
7 years, 2 months ago (2013-10-04 21:07:59 UTC) #38
robertshield
lgtm
7 years, 2 months ago (2013-10-04 21:12:38 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erikwright@chromium.org/23513049/139001
7 years, 2 months ago (2013-10-07 13:38:26 UTC) #40
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 2 months ago (2013-10-07 13:44:30 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erikwright@chromium.org/23513049/155001
7 years, 2 months ago (2013-10-07 13:52:05 UTC) #42
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 2 months ago (2013-10-07 14:39:05 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erikwright@chromium.org/23513049/155001
7 years, 2 months ago (2013-10-07 14:42:00 UTC) #44
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 2 months ago (2013-10-07 15:06:35 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erikwright@chromium.org/23513049/167001
7 years, 2 months ago (2013-10-07 17:38:51 UTC) #46
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=29113
7 years, 2 months ago (2013-10-07 17:54:47 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erikwright@chromium.org/23513049/167001
7 years, 2 months ago (2013-10-08 02:11:11 UTC) #48
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=29235
7 years, 2 months ago (2013-10-08 02:34:05 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erikwright@chromium.org/23513049/203001
7 years, 2 months ago (2013-10-08 13:49:59 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erikwright@chromium.org/23513049/203001
7 years, 2 months ago (2013-10-08 17:49:39 UTC) #51
commit-bot: I haz the power
7 years, 2 months ago (2013-10-08 17:53:33 UTC) #52
Message was sent while issue was closed.
Change committed as 227542

Powered by Google App Engine
This is Rietveld 408576698