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

Issue 8787006: Delay autofill commits to reduce client to server traffic. (Closed)

Created:
9 years ago by lipalani1
Modified:
9 years ago
Reviewers:
Raghu Simha
CC:
chromium-reviews, Raghu Simha, ncarter (slow), akalin, tim (not reviewing), Paweł Hajdan Jr.
Visibility:
Public.

Description

We introduce the concept of nudge delay and each datatype is assigned a delay from one of the enums. Autofill is assigned the value PIGGYBACK_WITH_ANOTHER_CHANGE. Our sceheduler did not handle the case of 2 nudges being schedule with the first one being scheduled for a later time than the second one. Fixed that and added unit tests to it. BUG=106250 TEST=sync_unit_tests.exe, unit_tests.exe, integration_tests.exe Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=114941 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=115072

Patch Set 1 #

Patch Set 2 : For review. #

Total comments: 3

Patch Set 3 : for review. #

Total comments: 13

Patch Set 4 : self review. #

Patch Set 5 : For review. #

Total comments: 3

Patch Set 6 : For try jobs and commit. #

Patch Set 7 : For review. #

Total comments: 1

Patch Set 8 : For review. #

Patch Set 9 : For review. #

Total comments: 6

Patch Set 10 : For review. #

Total comments: 1

Patch Set 11 : For try jobs #

Patch Set 12 : For try jobs and commit #

Patch Set 13 : for commit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+246 lines, -62 lines) Patch
M chrome/browser/sync/engine/sync_scheduler.h View 1 2 3 4 8 9 10 1 chunk +1 line, -5 lines 0 comments Download
M chrome/browser/sync/engine/sync_scheduler.cc View 1 2 3 4 8 9 10 6 chunks +44 lines, -37 lines 0 comments Download
M chrome/browser/sync/engine/sync_scheduler_unittest.cc View 1 2 3 4 8 9 10 1 chunk +36 lines, -0 lines 0 comments Download
M chrome/browser/sync/internal_api/sync_manager.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/sync/internal_api/sync_manager.cc View 1 2 3 4 5 6 7 8 9 10 9 chunks +96 lines, -19 lines 0 comments Download
M chrome/browser/sync/internal_api/syncapi_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/sync/test/integration/two_client_autofill_sync_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 21 chunks +43 lines, -1 line 0 comments Download

Messages

Total messages: 25 (0 generated)
lipalani1
Please review.
9 years ago (2011-12-03 01:10:09 UTC) #1
tim (not reviewing)
http://codereview.chromium.org/8787006/diff/1006/chrome/browser/sync/engine/sync_scheduler.cc File chrome/browser/sync/engine/sync_scheduler.cc (right): http://codereview.chromium.org/8787006/diff/1006/chrome/browser/sync/engine/sync_scheduler.cc#newcode552 chrome/browser/sync/engine/sync_scheduler.cc:552: pending_nudge_->scheduled_start); This was explicitly not the goal of the ...
9 years ago (2011-12-06 20:15:57 UTC) #2
lipalani1
http://codereview.chromium.org/8787006/diff/1006/chrome/browser/sync/engine/sync_scheduler.cc File chrome/browser/sync/engine/sync_scheduler.cc (right): http://codereview.chromium.org/8787006/diff/1006/chrome/browser/sync/engine/sync_scheduler.cc#newcode552 chrome/browser/sync/engine/sync_scheduler.cc:552: pending_nudge_->scheduled_start); This is a needed change and is deliberate. ...
9 years ago (2011-12-06 20:44:06 UTC) #3
tim (not reviewing)
Actually I'm a bit confused now. The "freshness condition" check was there so that nudges ...
9 years ago (2011-12-06 20:58:45 UTC) #4
lipalani1
hmm not sure I understand. Let me explain the current state and what this impl ...
9 years ago (2011-12-06 22:37:08 UTC) #5
tim (not reviewing)
What I'm saying is the freshness condition (search sync_scheduler for that text) was there to ...
9 years ago (2011-12-06 23:15:56 UTC) #6
tim (not reviewing)
On Tue, Dec 6, 2011 at 3:15 PM, Tim Steele <tim@chromium.org> wrote: > What I'm ...
9 years ago (2011-12-06 23:17:53 UTC) #7
lipalani1
Summarizing everything: Let me try to explain the expectation moving forward regardless of what the ...
9 years ago (2011-12-07 22:31:02 UTC) #8
tim (not reviewing)
Overall pretty nice CL. A few comments. http://codereview.chromium.org/8787006/diff/1006/chrome/browser/sync/internal_api/sync_manager.cc File chrome/browser/sync/internal_api/sync_manager.cc (right): http://codereview.chromium.org/8787006/diff/1006/chrome/browser/sync/internal_api/sync_manager.cc#newcode121 chrome/browser/sync/internal_api/sync_manager.cc:121: const int ...
9 years ago (2011-12-09 23:07:21 UTC) #9
lipalani1
Addressed your feedback. Please review. http://codereview.chromium.org/8787006/diff/11001/chrome/browser/sync/engine/sync_scheduler.cc File chrome/browser/sync/engine/sync_scheduler.cc (right): http://codereview.chromium.org/8787006/diff/11001/chrome/browser/sync/engine/sync_scheduler.cc#newcode1093 chrome/browser/sync/engine/sync_scheduler.cc:1093: ScheduleSyncSessionJob(job); The functional reason ...
9 years ago (2011-12-15 01:35:15 UTC) #10
tim (not reviewing)
http://codereview.chromium.org/8787006/diff/11001/chrome/browser/sync/internal_api/sync_manager.cc File chrome/browser/sync/internal_api/sync_manager.cc (right): http://codereview.chromium.org/8787006/diff/11001/chrome/browser/sync/internal_api/sync_manager.cc#newcode121 chrome/browser/sync/internal_api/sync_manager.cc:121: const int SyncManager::kPiggybackNudgeDelay = 2 * 60 * 60 ...
9 years ago (2011-12-15 20:59:15 UTC) #11
lipalani1
That was deliberate. My Initial version had a function to query from the scheduler. Then ...
9 years ago (2011-12-15 21:12:35 UTC) #12
tim (not reviewing)
LGTM with nits http://codereview.chromium.org/8787006/diff/20001/chrome/browser/sync/engine/sync_scheduler.cc File chrome/browser/sync/engine/sync_scheduler.cc (right): http://codereview.chromium.org/8787006/diff/20001/chrome/browser/sync/engine/sync_scheduler.cc#newcode513 chrome/browser/sync/engine/sync_scheduler.cc:513: ScheduleSyncSessionJob(job); suggestion here and elsewhere, you ...
9 years ago (2011-12-16 02:52:10 UTC) #13
lipalani1
Hey George this change is LGTMed. However it might be a good idea for you ...
9 years ago (2011-12-17 00:00:58 UTC) #14
GeorgeY
LGTM (when bots succeed)
9 years ago (2011-12-17 00:07:31 UTC) #15
Raghu Simha
I have one drive by comment. Feel free to do what's best. http://codereview.chromium.org/8787006/diff/30001/chrome/browser/sync/test/integration/two_client_autofill_sync_test.cc File chrome/browser/sync/test/integration/two_client_autofill_sync_test.cc ...
9 years ago (2011-12-17 00:19:39 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lipalani@chromium.org/8787006/30001
9 years ago (2011-12-18 07:10:50 UTC) #17
commit-bot: I haz the power
Change committed as 114941
9 years ago (2011-12-18 16:28:28 UTC) #18
lipalani1
Please review.
9 years ago (2011-12-19 20:41:29 UTC) #19
Raghu Simha
A few comments below. Also, it looks like the latest patch set is missing your ...
9 years ago (2011-12-19 20:50:48 UTC) #20
lipalani1
Please review. http://codereview.chromium.org/8787006/diff/46002/chrome/browser/sync/test/integration/two_client_autofill_sync_test.cc File chrome/browser/sync/test/integration/two_client_autofill_sync_test.cc (right): http://codereview.chromium.org/8787006/diff/46002/chrome/browser/sync/test/integration/two_client_autofill_sync_test.cc#newcode28 chrome/browser/sync/test/integration/two_client_autofill_sync_test.cc:28: using bookmarks_helper::AddFolder; On 2011/12/19 20:50:48, rsimha wrote: ...
9 years ago (2011-12-19 20:54:01 UTC) #21
Raghu Simha
One more fix, then rebase on your original patch, then LGTM. http://codereview.chromium.org/8787006/diff/20004/chrome/browser/sync/test/integration/two_client_autofill_sync_test.cc File chrome/browser/sync/test/integration/two_client_autofill_sync_test.cc (right): ...
9 years ago (2011-12-19 21:01:58 UTC) #22
lipalani1
all the hacky methods I spoke to you offline seem to be running into issues ...
9 years ago (2011-12-19 21:12:24 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lipalani@chromium.org/8787006/20007
9 years ago (2011-12-20 01:22:56 UTC) #24
commit-bot: I haz the power
9 years ago (2011-12-20 02:43:34 UTC) #25
Change committed as 115072

Powered by Google App Engine
This is Rietveld 408576698