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

Issue 2642493003: [Sync] Clean up SMTP startup flow. (Closed)

Created:
3 years, 11 months ago by maxbogue
Modified:
3 years, 11 months ago
Reviewers:
skym
CC:
chromium-reviews, sync-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Clean up SMTP startup flow. - start_error_ renamed model_error_, is always set on error, never cleared, and is the permanent indicator that the model is in an error state. - ConnectIfReady now no-ops if called more than once. This could happen if the get pending data callback was called synchronously and was the source of the crash in 679657. - Regression test added for the above issue. - std::move() the key lists for GetData calls for efficiency. - Cleaned up DCHECKS a bit and used ASSERT or EXPECT in tests instead. - Remove EntityMap and UpdateMap typedefs in the SMTP header. BUG=673883, 679657 Review-Url: https://codereview.chromium.org/2642493003 Cr-Commit-Position: refs/heads/master@{#444561} Committed: https://chromium.googlesource.com/chromium/src/+/d462fc419f40c24915a6c32cea50ecb3c5273f65

Patch Set 1 #

Total comments: 20

Patch Set 2 : Address comments. #

Total comments: 6

Patch Set 3 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -59 lines) Patch
M components/sync/model_impl/shared_model_type_processor.h View 1 4 chunks +12 lines, -15 lines 0 comments Download
M components/sync/model_impl/shared_model_type_processor.cc View 1 2 13 chunks +47 lines, -39 lines 0 comments Download
M components/sync/model_impl/shared_model_type_processor_unittest.cc View 5 chunks +37 lines, -5 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 21 (14 generated)
maxbogue
Sky, PTAL!
3 years, 11 months ago (2017-01-18 00:03:09 UTC) #6
skym
https://codereview.chromium.org/2642493003/diff/1/components/sync/model_impl/shared_model_type_processor.cc File components/sync/model_impl/shared_model_type_processor.cc (left): https://codereview.chromium.org/2642493003/diff/1/components/sync/model_impl/shared_model_type_processor.cc#oldcode153 components/sync/model_impl/shared_model_type_processor.cc:153: is_metadata_loaded_ = true; Glad to see this removed. https://codereview.chromium.org/2642493003/diff/1/components/sync/model_impl/shared_model_type_processor.cc ...
3 years, 11 months ago (2017-01-18 17:31:39 UTC) #7
maxbogue
PTAL, newest patch has a lot of changes. https://codereview.chromium.org/2642493003/diff/1/components/sync/model_impl/shared_model_type_processor.cc File components/sync/model_impl/shared_model_type_processor.cc (left): https://codereview.chromium.org/2642493003/diff/1/components/sync/model_impl/shared_model_type_processor.cc#oldcode153 components/sync/model_impl/shared_model_type_processor.cc:153: is_metadata_loaded_ ...
3 years, 11 months ago (2017-01-18 20:09:51 UTC) #9
skym
lgtm https://codereview.chromium.org/2642493003/diff/20001/components/sync/model_impl/shared_model_type_processor.cc File components/sync/model_impl/shared_model_type_processor.cc (right): https://codereview.chromium.org/2642493003/diff/20001/components/sync/model_impl/shared_model_type_processor.cc#newcode126 components/sync/model_impl/shared_model_type_processor.cc:126: DCHECK(!waiting_for_metadata_); Is this really true now that you ...
3 years, 11 months ago (2017-01-18 21:24:59 UTC) #14
maxbogue
https://codereview.chromium.org/2642493003/diff/20001/components/sync/model_impl/shared_model_type_processor.cc File components/sync/model_impl/shared_model_type_processor.cc (right): https://codereview.chromium.org/2642493003/diff/20001/components/sync/model_impl/shared_model_type_processor.cc#newcode126 components/sync/model_impl/shared_model_type_processor.cc:126: DCHECK(!waiting_for_metadata_); On 2017/01/18 21:24:59, skym wrote: > Is this ...
3 years, 11 months ago (2017-01-18 23:31:55 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2642493003/40001
3 years, 11 months ago (2017-01-18 23:32:37 UTC) #18
commit-bot: I haz the power
3 years, 11 months ago (2017-01-19 00:22:40 UTC) #21
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/d462fc419f40c24915a6c32cea50...

Powered by Google App Engine
This is Rietveld 408576698