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

Issue 1530763004: Add Statistics for SupervisedUserSettingService during merging and syncing data. (Closed)

Created:
5 years ago by Deepak
Modified:
4 years, 11 months ago
Reviewers:
Bernhard Bauer
CC:
chromium-reviews, pam+watch_chromium.org, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adding Statistics like number of items added, modified for SupervisedUserSettingService for SUPERVISED_USER_SHARED_SETTINGS while merging and syncing data starts. BUG=572586 Committed: https://crrev.com/1974ef3da3b8a4c68a0d83899d0150a489b0f5be Cr-Commit-Position: refs/heads/master@{#368060}

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : Changes as per review comments. #

Patch Set 4 : Added before and after association statistic. #

Total comments: 5

Patch Set 5 : Added Test Case. #

Total comments: 8

Patch Set 6 : Changes as per review comments. #

Total comments: 8

Patch Set 7 : Changes as per review comments. #

Total comments: 8

Patch Set 8 : Changes as per review comments. #

Patch Set 9 : #

Total comments: 2

Patch Set 10 : Addressing review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -22 lines) Patch
M chrome/browser/supervised_user/legacy/supervised_user_shared_settings_service.cc View 1 2 3 4 5 6 7 8 9 10 chunks +44 lines, -19 lines 0 comments Download
M chrome/browser/supervised_user/legacy/supervised_user_shared_settings_service_unittest.cc View 1 2 3 4 5 6 4 chunks +16 lines, -3 lines 0 comments Download

Messages

Total messages: 27 (8 generated)
Deepak
PTAL
4 years, 12 months ago (2015-12-28 06:41:03 UTC) #4
Bernhard Bauer
https://codereview.chromium.org/1530763004/diff/20001/chrome/browser/supervised_user/legacy/supervised_user_shared_settings_service.cc File chrome/browser/supervised_user/legacy/supervised_user_shared_settings_service.cc (left): https://codereview.chromium.org/1530763004/diff/20001/chrome/browser/supervised_user/legacy/supervised_user_shared_settings_service.cc#oldcode262 chrome/browser/supervised_user/legacy/supervised_user_shared_settings_service.cc:262: // TODO(bauerb): Statistics? Sorry, that comment should have been ...
4 years, 11 months ago (2016-01-04 12:53:30 UTC) #5
Deepak
On 2016/01/04 12:53:30, bauerb catching up on reviews wrote: > https://codereview.chromium.org/1530763004/diff/20001/chrome/browser/supervised_user/legacy/supervised_user_shared_settings_service.cc > File > chrome/browser/supervised_user/legacy/supervised_user_shared_settings_service.cc ...
4 years, 11 months ago (2016-01-04 13:51:49 UTC) #6
Deepak
PTAL https://codereview.chromium.org/1530763004/diff/20001/chrome/browser/supervised_user/legacy/supervised_user_shared_settings_service.cc File chrome/browser/supervised_user/legacy/supervised_user_shared_settings_service.cc (left): https://codereview.chromium.org/1530763004/diff/20001/chrome/browser/supervised_user/legacy/supervised_user_shared_settings_service.cc#oldcode262 chrome/browser/supervised_user/legacy/supervised_user_shared_settings_service.cc:262: // TODO(bauerb): Statistics? On 2016/01/04 12:53:30, bauerb catching ...
4 years, 11 months ago (2016-01-05 03:45:16 UTC) #8
Bernhard Bauer
Thanks! Could you also update the unit tests for these classes to verify the numbers? ...
4 years, 11 months ago (2016-01-05 09:37:30 UTC) #9
Deepak
PTAL https://codereview.chromium.org/1530763004/diff/60001/chrome/browser/supervised_user/legacy/supervised_user_shared_settings_service.cc File chrome/browser/supervised_user/legacy/supervised_user_shared_settings_service.cc (right): https://codereview.chromium.org/1530763004/diff/60001/chrome/browser/supervised_user/legacy/supervised_user_shared_settings_service.cc#newcode264 chrome/browser/supervised_user/legacy/supervised_user_shared_settings_service.cc:264: result.set_num_items_added(change_list.size()); On 2016/01/05 09:37:30, bauerb catching up on ...
4 years, 11 months ago (2016-01-05 13:29:19 UTC) #11
Bernhard Bauer
https://codereview.chromium.org/1530763004/diff/60001/chrome/browser/supervised_user/supervised_user_settings_service.cc File chrome/browser/supervised_user/supervised_user_settings_service.cc (right): https://codereview.chromium.org/1530763004/diff/60001/chrome/browser/supervised_user/supervised_user_settings_service.cc#newcode220 chrome/browser/supervised_user/supervised_user_settings_service.cc:220: int num_before_association = queued_items->size(); On 2016/01/05 13:29:19, Deepak wrote: ...
4 years, 11 months ago (2016-01-05 14:10:54 UTC) #12
Deepak
PTAL https://codereview.chromium.org/1530763004/diff/80001/chrome/browser/supervised_user/legacy/supervised_user_shared_settings_service.cc File chrome/browser/supervised_user/legacy/supervised_user_shared_settings_service.cc (right): https://codereview.chromium.org/1530763004/diff/80001/chrome/browser/supervised_user/legacy/supervised_user_shared_settings_service.cc#newcode268 chrome/browser/supervised_user/legacy/supervised_user_shared_settings_service.cc:268: result.set_num_items_modified(num_modified); On 2016/01/05 14:10:54, Bernhard Bauer wrote: > ...
4 years, 11 months ago (2016-01-06 05:26:31 UTC) #13
Bernhard Bauer
https://codereview.chromium.org/1530763004/diff/100001/chrome/browser/supervised_user/legacy/supervised_user_shared_settings_service.cc File chrome/browser/supervised_user/legacy/supervised_user_shared_settings_service.cc (right): https://codereview.chromium.org/1530763004/diff/100001/chrome/browser/supervised_user/legacy/supervised_user_shared_settings_service.cc#newcode208 chrome/browser/supervised_user/legacy/supervised_user_shared_settings_service.cc:208: DictionaryPrefUpdate update_prefs(prefs_, If you don't need to modify anything, ...
4 years, 11 months ago (2016-01-06 16:41:50 UTC) #14
Deepak
Thanks for review and giving directions. Changes done as suggested. PTAL. https://codereview.chromium.org/1530763004/diff/100001/chrome/browser/supervised_user/legacy/supervised_user_shared_settings_service.cc File chrome/browser/supervised_user/legacy/supervised_user_shared_settings_service.cc (right): ...
4 years, 11 months ago (2016-01-07 09:52:31 UTC) #15
Bernhard Bauer
https://codereview.chromium.org/1530763004/diff/120001/chrome/browser/supervised_user/legacy/supervised_user_shared_settings_service.cc File chrome/browser/supervised_user/legacy/supervised_user_shared_settings_service.cc (right): https://codereview.chromium.org/1530763004/diff/120001/chrome/browser/supervised_user/legacy/supervised_user_shared_settings_service.cc#newcode208 chrome/browser/supervised_user/legacy/supervised_user_shared_settings_service.cc:208: const DictionaryValue* dict = NULL; Use nullptr instead of ...
4 years, 11 months ago (2016-01-07 10:04:29 UTC) #16
Deepak
PTAL https://codereview.chromium.org/1530763004/diff/120001/chrome/browser/supervised_user/legacy/supervised_user_shared_settings_service.cc File chrome/browser/supervised_user/legacy/supervised_user_shared_settings_service.cc (right): https://codereview.chromium.org/1530763004/diff/120001/chrome/browser/supervised_user/legacy/supervised_user_shared_settings_service.cc#newcode208 chrome/browser/supervised_user/legacy/supervised_user_shared_settings_service.cc:208: const DictionaryValue* dict = NULL; On 2016/01/07 10:04:29, ...
4 years, 11 months ago (2016-01-07 10:40:07 UTC) #17
Bernhard Bauer
https://codereview.chromium.org/1530763004/diff/160001/chrome/browser/supervised_user/legacy/supervised_user_shared_settings_service.cc File chrome/browser/supervised_user/legacy/supervised_user_shared_settings_service.cc (right): https://codereview.chromium.org/1530763004/diff/160001/chrome/browser/supervised_user/legacy/supervised_user_shared_settings_service.cc#newcode201 chrome/browser/supervised_user/legacy/supervised_user_shared_settings_service.cc:201: int num_added = 0; Actually, can you move |num_added| ...
4 years, 11 months ago (2016-01-07 10:54:46 UTC) #18
Deepak
PTAL Thanks https://codereview.chromium.org/1530763004/diff/160001/chrome/browser/supervised_user/legacy/supervised_user_shared_settings_service.cc File chrome/browser/supervised_user/legacy/supervised_user_shared_settings_service.cc (right): https://codereview.chromium.org/1530763004/diff/160001/chrome/browser/supervised_user/legacy/supervised_user_shared_settings_service.cc#newcode201 chrome/browser/supervised_user/legacy/supervised_user_shared_settings_service.cc:201: int num_added = 0; On 2016/01/07 10:54:46, ...
4 years, 11 months ago (2016-01-07 11:53:52 UTC) #19
Bernhard Bauer
LGTM, thanks!
4 years, 11 months ago (2016-01-07 12:00:07 UTC) #20
Deepak
On 2016/01/07 12:00:07, Bernhard Bauer wrote: > LGTM, thanks! Thankyou Bernhard.
4 years, 11 months ago (2016-01-07 12:01:00 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1530763004/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1530763004/180001
4 years, 11 months ago (2016-01-07 12:02:47 UTC) #23
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 11 months ago (2016-01-07 13:04:15 UTC) #25
commit-bot: I haz the power
4 years, 11 months ago (2016-01-07 13:05:26 UTC) #27
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/1974ef3da3b8a4c68a0d83899d0150a489b0f5be
Cr-Commit-Position: refs/heads/master@{#368060}

Powered by Google App Engine
This is Rietveld 408576698