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

Issue 2623723002: [Sync] Remove ModelError::IsSet() in favor of base::Optional. (Closed)

Created:
3 years, 11 months ago by maxbogue
Modified:
3 years, 11 months ago
Reviewers:
Mathieu, skym, Olivier
CC:
chromium-reviews, rouslan+autofill_chromium.org, sebsg+autofillwatch_chromium.org, browser-components-watch_chromium.org, mathp+autofillwatch_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org, sync-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Remove ModelError::IsSet() in favor of base::Optional. This is more idiomatic and cleaner. BUG=673883 Review-Url: https://codereview.chromium.org/2623723002 Cr-Commit-Position: refs/heads/master@{#442661} Committed: https://chromium.googlesource.com/chromium/src/+/2956e8ee01c51ffab5e2749e8b670855c8d11d99

Patch Set 1 #

Patch Set 2 : Fix iOS. #

Patch Set 3 : Rebase. #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -142 lines) Patch
M chrome/browser/sync/test/integration/two_client_uss_sync_test.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M components/autofill/core/browser/webdata/autocomplete_sync_bridge.h View 2 chunks +3 lines, -2 lines 0 comments Download
M components/autofill/core/browser/webdata/autocomplete_sync_bridge.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M components/reading_list/ios/reading_list_model_unittest.mm View 1 1 chunk +4 lines, -4 lines 0 comments Download
M components/reading_list/ios/reading_list_store.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M components/reading_list/ios/reading_list_store.cc View 1 5 chunks +6 lines, -6 lines 0 comments Download
M components/reading_list/ios/reading_list_store_unittest.mm View 1 5 chunks +6 lines, -6 lines 2 comments Download
M components/sync/device_info/device_info_sync_bridge.h View 3 chunks +4 lines, -3 lines 0 comments Download
M components/sync/device_info/device_info_sync_bridge.cc View 6 chunks +9 lines, -9 lines 0 comments Download
M components/sync/device_info/device_info_sync_bridge_unittest.cc View 10 chunks +43 lines, -41 lines 4 comments Download
M components/sync/driver/model_type_controller.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M components/sync/model/fake_model_type_sync_bridge.h View 2 chunks +3 lines, -2 lines 0 comments Download
M components/sync/model/fake_model_type_sync_bridge.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M components/sync/model/mock_model_type_store.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/sync/model/model_error.h View 1 2 2 chunks +0 lines, -7 lines 0 comments Download
M components/sync/model/model_error.cc View 1 chunk +1 line, -9 lines 0 comments Download
M components/sync/model/model_type_store.h View 2 chunks +2 lines, -1 line 0 comments Download
M components/sync/model/model_type_sync_bridge.h View 1 2 3 chunks +3 lines, -2 lines 0 comments Download
M components/sync/model/stub_model_type_sync_bridge.h View 2 chunks +3 lines, -2 lines 0 comments Download
M components/sync/model/stub_model_type_sync_bridge.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M components/sync/model_impl/model_type_store_impl.cc View 2 chunks +2 lines, -1 line 0 comments Download
M components/sync/model_impl/model_type_store_impl_unittest.cc View 6 chunks +11 lines, -10 lines 0 comments Download
M components/sync/model_impl/shared_model_type_processor.h View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M components/sync/model_impl/shared_model_type_processor.cc View 1 2 5 chunks +13 lines, -15 lines 0 comments Download
M components/sync/model_impl/shared_model_type_processor_unittest.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 23 (15 generated)
maxbogue
Sky, PTAL! ModelError part 3: using base::Optional. I really like this change, thanks for suggesting ...
3 years, 11 months ago (2017-01-09 23:26:16 UTC) #6
skym
lgtm https://codereview.chromium.org/2623723002/diff/40001/components/reading_list/ios/reading_list_store_unittest.mm File components/reading_list/ios/reading_list_store_unittest.mm (right): https://codereview.chromium.org/2623723002/diff/40001/components/reading_list/ios/reading_list_store_unittest.mm#newcode223 components/reading_list/ios/reading_list_store_unittest.mm:223: auto error = reading_list_store_->MergeSyncData(std::move(metadata_changes), Why are these error ...
3 years, 11 months ago (2017-01-10 16:24:42 UTC) #13
maxbogue
https://codereview.chromium.org/2623723002/diff/40001/components/reading_list/ios/reading_list_store_unittest.mm File components/reading_list/ios/reading_list_store_unittest.mm (right): https://codereview.chromium.org/2623723002/diff/40001/components/reading_list/ios/reading_list_store_unittest.mm#newcode223 components/reading_list/ios/reading_list_store_unittest.mm:223: auto error = reading_list_store_->MergeSyncData(std::move(metadata_changes), On 2017/01/10 16:24:41, skym wrote: ...
3 years, 11 months ago (2017-01-10 17:53:50 UTC) #14
maxbogue
+mathp for components/autofill/ +olivierrobin for components/reading_list/ Olivier, the error variables in reading_list_store_unittest.mm are never used; ...
3 years, 11 months ago (2017-01-10 17:55:49 UTC) #16
Olivier
On 2017/01/10 17:55:49, maxbogue wrote: > +mathp for components/autofill/ > +olivierrobin for components/reading_list/ > > ...
3 years, 11 months ago (2017-01-10 18:00:35 UTC) #17
Mathieu
autofill lgtm
3 years, 11 months ago (2017-01-10 19:10:47 UTC) #18
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/2623723002/40001
3 years, 11 months ago (2017-01-10 19:39:09 UTC) #20
commit-bot: I haz the power
3 years, 11 months ago (2017-01-10 19:45:50 UTC) #23
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/2956e8ee01c51ffab5e2749e8b67...

Powered by Google App Engine
This is Rietveld 408576698