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

Issue 1861383004: Add module for counting date-last-roll-call and persisting those counts (Closed)

Created:
4 years, 8 months ago by waffles
Modified:
4 years, 8 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, sdefresne+watch_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add module for counting date-last-roll-call and persisting those counts in the user-data-dir. BUG=590291 Committed: https://crrev.com/d2d9a3375e853ba101d16a5cc8d91d6c2db44f2d Cr-Commit-Position: refs/heads/master@{#386271}

Patch Set 1 #

Total comments: 26

Patch Set 2 : sorin@ & trybot comments #

Patch Set 3 : iOS fix #

Patch Set 4 : iOS Fix #

Patch Set 5 : ThreadChecker fix #

Total comments: 4

Patch Set 6 : Redo using PrefService. #

Patch Set 7 : Fix up BUILD.gn. #

Total comments: 6

Patch Set 8 : include tidiness #

Patch Set 9 : ASAN #

Total comments: 41

Patch Set 10 : bauerb@ comments #

Patch Set 11 : it is better not to crash #

Patch Set 12 : lint #

Patch Set 13 : format #

Total comments: 2

Patch Set 14 : Final comments #

Patch Set 15 : Rebase #

Patch Set 16 : Fix merge-added test #

Patch Set 17 : Another test fix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+366 lines, -40 lines) Patch
M chrome/browser/component_updater/chrome_component_updater_configurator.cc View 1 2 3 4 5 6 7 4 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/extensions/updater/chrome_update_client_config.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/updater/chrome_update_client_config.cc View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
A + components/test/data/update_client/updatecheck_reply_4.xml View 1 chunk +1 line, -0 lines 0 comments Download
M components/update_client.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
M components/update_client/BUILD.gn View 1 2 3 4 5 6 7 5 chunks +7 lines, -0 lines 0 comments Download
M components/update_client/DEPS View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M components/update_client/configurator.h View 1 2 3 4 5 6 7 8 9 2 chunks +9 lines, -0 lines 0 comments Download
A components/update_client/persisted_data.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +60 lines, -0 lines 0 comments Download
A components/update_client/persisted_data.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +60 lines, -0 lines 0 comments Download
A components/update_client/persisted_data_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +47 lines, -0 lines 0 comments Download
M components/update_client/test_configurator.h View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M components/update_client/test_configurator.cc View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -0 lines 0 comments Download
M components/update_client/update_checker.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +5 lines, -2 lines 0 comments Download
M components/update_client/update_checker.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 7 chunks +30 lines, -11 lines 0 comments Download
M components/update_client/update_checker_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 15 chunks +56 lines, -11 lines 0 comments Download
M components/update_client/update_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +5 lines, -0 lines 0 comments Download
M components/update_client/update_client.cc View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -0 lines 0 comments Download
M components/update_client/update_client_unittest.cc View 1 2 3 4 5 6 7 8 9 17 chunks +34 lines, -13 lines 0 comments Download
M components/update_client/update_engine.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M components/update_client/update_engine.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +5 lines, -3 lines 0 comments Download
M components/update_client/update_response.h View 1 chunk +2 lines, -0 lines 0 comments Download
M components/update_client/update_response.cc View 2 chunks +6 lines, -0 lines 0 comments Download
M ios/chrome/browser/component_updater/ios_component_updater_configurator.cc View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 44 (17 generated)
waffles
PTAL; if LGTY, will then expand reviewers to include ios and extension owners. Otherwise, it's ...
4 years, 8 months ago (2016-04-07 02:37:29 UTC) #2
Sorin Jianu
lgtm Thank you. The code is in good shape, all below is minor nits that ...
4 years, 8 months ago (2016-04-07 04:03:19 UTC) #4
waffles
Thanks! https://codereview.chromium.org/1861383004/diff/1/chrome/browser/component_updater/chrome_component_updater_configurator.cc File chrome/browser/component_updater/chrome_component_updater_configurator.cc (right): https://codereview.chromium.org/1861383004/diff/1/chrome/browser/component_updater/chrome_component_updater_configurator.cc#newcode181 chrome/browser/component_updater/chrome_component_updater_configurator.cc:181: CHECK(PathService::Get(chrome::DIR_USER_DATA, &result)); On 2016/04/07 04:03:19, Sorin Jianu wrote: ...
4 years, 8 months ago (2016-04-07 17:04:44 UTC) #5
waffles
asargent, rohitrao: Please take a look; hoping to make the branch cut. The ultimate effect ...
4 years, 8 months ago (2016-04-07 17:10:56 UTC) #7
asargent_no_longer_on_chrome
One overall question: is there a reason you're using separate files for this data instead ...
4 years, 8 months ago (2016-04-07 17:53:49 UTC) #8
waffles
On 2016/04/07 17:53:49, Antony Sargent wrote: > One overall question: is there a reason you're ...
4 years, 8 months ago (2016-04-07 17:59:19 UTC) #9
asargent_no_longer_on_chrome
For install-wide preferences that aren't user specific, there's the "<UserDataDir>/Local State" file. You could have ...
4 years, 8 months ago (2016-04-07 18:18:46 UTC) #10
Sorin Jianu
lgtm I will look at the last patch soon. https://codereview.chromium.org/1861383004/diff/1/components/update_client/component_metadata.cc File components/update_client/component_metadata.cc (right): https://codereview.chromium.org/1861383004/diff/1/components/update_client/component_metadata.cc#newcode36 components/update_client/component_metadata.cc:36: ...
4 years, 8 months ago (2016-04-07 18:27:35 UTC) #11
Sorin Jianu
lgtm https://codereview.chromium.org/1861383004/diff/80001/components/update_client/configurator.h File components/update_client/configurator.h (right): https://codereview.chromium.org/1861383004/diff/80001/components/update_client/configurator.h#newcode117 components/update_client/configurator.h:117: virtual base::FilePath GetMetadataPath() const = 0; maybe rename ...
4 years, 8 months ago (2016-04-07 18:53:50 UTC) #12
waffles
OK, refactored to use PrefService. PrefService is not ref-counted and so I have concerns about ...
4 years, 8 months ago (2016-04-07 22:45:18 UTC) #14
asargent_no_longer_on_chrome
extensions parts lgtm https://codereview.chromium.org/1861383004/diff/120001/chrome/browser/extensions/updater/chrome_update_client_config.cc File chrome/browser/extensions/updater/chrome_update_client_config.cc (right): https://codereview.chromium.org/1861383004/diff/120001/chrome/browser/extensions/updater/chrome_update_client_config.cc#newcode14 chrome/browser/extensions/updater/chrome_update_client_config.cc:14: #include "components/prefs/pref_service.h" do you still need ...
4 years, 8 months ago (2016-04-07 23:07:25 UTC) #15
waffles
https://codereview.chromium.org/1861383004/diff/120001/chrome/browser/extensions/updater/chrome_update_client_config.cc File chrome/browser/extensions/updater/chrome_update_client_config.cc (right): https://codereview.chromium.org/1861383004/diff/120001/chrome/browser/extensions/updater/chrome_update_client_config.cc#newcode14 chrome/browser/extensions/updater/chrome_update_client_config.cc:14: #include "components/prefs/pref_service.h" On 2016/04/07 23:07:25, Antony Sargent wrote: > ...
4 years, 8 months ago (2016-04-07 23:22:24 UTC) #16
Bernhard Bauer
A couple of comments, but they're mostly nits. What I'm wondering about the most is, ...
4 years, 8 months ago (2016-04-08 09:06:10 UTC) #17
Bernhard Bauer
https://codereview.chromium.org/1861383004/diff/160001/components/update_client/persisted_data.h File components/update_client/persisted_data.h (right): https://codereview.chromium.org/1861383004/diff/160001/components/update_client/persisted_data.h#newcode33 components/update_client/persisted_data.h:33: PersistedData(PrefService* prefService); Also, underscore_style for variables.
4 years, 8 months ago (2016-04-08 09:10:42 UTC) #18
waffles
PTAL. Removed the refcounting. Thanks! https://codereview.chromium.org/1861383004/diff/160001/chrome/browser/extensions/updater/chrome_update_client_config.cc File chrome/browser/extensions/updater/chrome_update_client_config.cc (right): https://codereview.chromium.org/1861383004/diff/160001/chrome/browser/extensions/updater/chrome_update_client_config.cc#newcode105 chrome/browser/extensions/updater/chrome_update_client_config.cc:105: return NULL; On 2016/04/08 ...
4 years, 8 months ago (2016-04-08 19:11:01 UTC) #19
rohitrao (ping after 24h)
ios/ changes LGTM. We don't need to persist this data on iOS?
4 years, 8 months ago (2016-04-08 20:22:58 UTC) #20
waffles
Thanks Rohit! On 2016/04/08 20:22:58, rohitrao wrote: > ios/ changes LGTM. We don't need to ...
4 years, 8 months ago (2016-04-08 20:29:05 UTC) #21
Bernhard Bauer
LGTM, thanks! https://codereview.chromium.org/1861383004/diff/160001/components/update_client/update_checker.cc File components/update_client/update_checker.cc (right): https://codereview.chromium.org/1861383004/diff/160001/components/update_client/update_checker.cc#newcode162 components/update_client/update_checker.cc:162: base::Unretained(this), base::Passed(&ids_checked))); On 2016/04/08 19:11:01, waffles wrote: ...
4 years, 8 months ago (2016-04-08 21:54:07 UTC) #22
waffles
https://codereview.chromium.org/1861383004/diff/240001/components/update_client/persisted_data.cc File components/update_client/persisted_data.cc (right): https://codereview.chromium.org/1861383004/diff/240001/components/update_client/persisted_data.cc#newcode37 components/update_client/persisted_data.cc:37: DCHECK(std::string::npos == id.find('.')); On 2016/04/08 21:54:07, Bernhard Bauer wrote: ...
4 years, 8 months ago (2016-04-08 22:00:49 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1861383004/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1861383004/260001
4 years, 8 months ago (2016-04-08 22:01:55 UTC) #26
commit-bot: I haz the power
Failed to apply patch for components/update_client/update_checker_unittest.cc: While running git apply --index -3 -p1; error: patch ...
4 years, 8 months ago (2016-04-08 23:13:43 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1861383004/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1861383004/280001
4 years, 8 months ago (2016-04-08 23:25:59 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/157045) ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 8 months ago (2016-04-08 23:32:51 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1861383004/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1861383004/300001
4 years, 8 months ago (2016-04-09 00:19:39 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1861383004/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1861383004/320001
4 years, 8 months ago (2016-04-09 01:05:13 UTC) #41
commit-bot: I haz the power
Committed patchset #17 (id:320001)
4 years, 8 months ago (2016-04-09 02:00:06 UTC) #42
commit-bot: I haz the power
4 years, 8 months ago (2016-04-09 02:01:46 UTC) #44
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/d2d9a3375e853ba101d16a5cc8d91d6c2db44f2d
Cr-Commit-Position: refs/heads/master@{#386271}

Powered by Google App Engine
This is Rietveld 408576698