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

Issue 213003004: Replace calls to 3-arg SyncData::CreateLocalData with 5-arg version. (Closed)

Created:
6 years, 8 months ago by maniscalco
Modified:
6 years, 8 months ago
CC:
chromium-reviews, tim+watch_chromium.org, extensions-reviews_chromium.org, browser-components-watch_chromium.org, haitaol+watch_chromium.org, pam+watch_chromium.org, chromium-apps-reviews_chromium.org, maniscalco+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@syncapi
Visibility:
Public.

Description

Replace deprecated 3-arg SyncData::CreateLocalData with 5-arg version. Update unit tests that call SyncData::CreateLocalData to call the new version. Add AttachmentServiceProxyForTest to reduce boilerplate in tests. Add a MessageLoop to ManagedUserSyncServiceTest, DomDistillerStoreTest, and SyncChangeTest because AttachmentServiceProxyForTest needs one. Format modified lines with clang-format. TBR=pam,droger,asargent,pkasting,pkotwicz,cjhopman BUG=353296 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=263128

Patch Set 1 : Give AttachmentServiceProxyForTestMember SYNC_EXPORT so we can link on Windows. #

Patch Set 2 : Add a MessageLoop to SyncChangeTest and DomDistillerStoreTest. #

Patch Set 3 : Fix whitespace issue. #

Patch Set 4 : Merge with master. #

Total comments: 3

Patch Set 5 : Fix slicing problem by passing AttachmentServiceProxy by scoped_refptr. AttachmentServiceProxyForT… #

Patch Set 6 : Forgot a class keyword. #

Total comments: 2

Patch Set 7 : Use a "core" object to avoid making AttachmentServiceProxy RCTS. #

Total comments: 1

Patch Set 8 : Changes from self-review. #

Total comments: 4

Patch Set 9 : Apply feedback from review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+810 lines, -341 lines) Patch
M chrome/browser/extensions/api/sessions/sessions_apitest.cc View 1 2 3 4 2 chunks +13 lines, -3 lines 0 comments Download
M chrome/browser/history/history_unittest.cc View 1 2 3 4 4 chunks +26 lines, -10 lines 0 comments Download
M chrome/browser/managed_mode/managed_user_registration_utility_unittest.cc View 1 2 3 4 2 chunks +10 lines, -4 lines 0 comments Download
M chrome/browser/managed_mode/managed_user_sync_service_unittest.cc View 1 2 3 4 4 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/prefs/synced_pref_change_registrar_browsertest.cc View 1 2 3 4 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/sync/glue/favicon_cache_unittest.cc View 1 2 3 4 20 chunks +324 lines, -222 lines 0 comments Download
M chrome/browser/sync/glue/generic_change_processor.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/sessions2/sessions_sync_manager_unittest.cc View 1 2 3 4 15 chunks +114 lines, -28 lines 0 comments Download
M chrome/browser/themes/theme_syncable_service_unittest.cc View 1 2 3 4 2 chunks +11 lines, -5 lines 0 comments Download
M chrome/browser/ui/toolbar/recent_tabs_builder_test_helper.cc View 1 2 3 4 2 chunks +17 lines, -5 lines 0 comments Download
M components/dom_distiller/core/dom_distiller_store_unittest.cc View 1 2 3 4 3 chunks +10 lines, -1 line 0 comments Download
M sync/api/attachments/attachment_service_proxy.h View 1 2 3 4 5 6 7 8 4 chunks +59 lines, -10 lines 0 comments Download
M sync/api/attachments/attachment_service_proxy.cc View 1 2 3 4 5 6 7 8 5 chunks +68 lines, -9 lines 0 comments Download
A sync/api/attachments/attachment_service_proxy_for_test.h View 1 2 3 4 5 6 7 8 1 chunk +50 lines, -0 lines 0 comments Download
A sync/api/attachments/attachment_service_proxy_for_test.cc View 1 2 3 4 5 6 7 8 1 chunk +52 lines, -0 lines 0 comments Download
M sync/api/sync_change_unittest.cc View 1 2 3 4 3 chunks +34 lines, -13 lines 0 comments Download
M sync/api/sync_data.h View 1 2 3 4 5 6 2 chunks +1 line, -6 lines 0 comments Download
M sync/api/sync_data.cc View 1 2 3 5 6 1 chunk +0 lines, -11 lines 0 comments Download
M sync/api/sync_data_unittest.cc View 1 2 3 5 6 1 chunk +0 lines, -10 lines 0 comments Download
M sync/sync_api.gypi View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
maniscalco
Hey Tim, mind reviewing this change? This is a follow up to the sync API ...
6 years, 8 months ago (2014-04-01 20:04:27 UTC) #1
tim (not reviewing)
https://codereview.chromium.org/213003004/diff/120001/sync/api/attachments/attachment_service_proxy_for_test.cc File sync/api/attachments/attachment_service_proxy_for_test.cc (right): https://codereview.chromium.org/213003004/diff/120001/sync/api/attachments/attachment_service_proxy_for_test.cc#newcode22 sync/api/attachments/attachment_service_proxy_for_test.cc:22: wrapped_weak_ptr_factory_.GetWeakPtr()) {} Yeah, wow. That's quite the conundrum. I ...
6 years, 8 months ago (2014-04-04 18:11:34 UTC) #2
maniscalco
https://codereview.chromium.org/213003004/diff/120001/sync/api/attachments/attachment_service_proxy_for_test.cc File sync/api/attachments/attachment_service_proxy_for_test.cc (right): https://codereview.chromium.org/213003004/diff/120001/sync/api/attachments/attachment_service_proxy_for_test.cc#newcode22 sync/api/attachments/attachment_service_proxy_for_test.cc:22: wrapped_weak_ptr_factory_.GetWeakPtr()) {} Fair enough. I'm convinced in this case ...
6 years, 8 months ago (2014-04-04 19:14:22 UTC) #3
maniscalco
PTAL! https://codereview.chromium.org/213003004/diff/120001/sync/api/attachments/attachment_service_proxy_for_test.cc File sync/api/attachments/attachment_service_proxy_for_test.cc (right): https://codereview.chromium.org/213003004/diff/120001/sync/api/attachments/attachment_service_proxy_for_test.cc#newcode22 sync/api/attachments/attachment_service_proxy_for_test.cc:22: wrapped_weak_ptr_factory_.GetWeakPtr()) {} Good news and bad news. Good ...
6 years, 8 months ago (2014-04-04 22:57:40 UTC) #4
tim (not reviewing)
https://codereview.chromium.org/213003004/diff/180001/sync/api/attachments/attachment_service_proxy_for_test.h File sync/api/attachments/attachment_service_proxy_for_test.h (right): https://codereview.chromium.org/213003004/diff/180001/sync/api/attachments/attachment_service_proxy_for_test.h#newcode22 sync/api/attachments/attachment_service_proxy_for_test.h:22: static scoped_refptr<AttachmentServiceProxyForTest> Create(); I see. Sad face. In this ...
6 years, 8 months ago (2014-04-07 20:23:10 UTC) #5
maniscalco
RFAL! https://codereview.chromium.org/213003004/diff/180001/sync/api/attachments/attachment_service_proxy_for_test.h File sync/api/attachments/attachment_service_proxy_for_test.h (right): https://codereview.chromium.org/213003004/diff/180001/sync/api/attachments/attachment_service_proxy_for_test.h#newcode22 sync/api/attachments/attachment_service_proxy_for_test.h:22: static scoped_refptr<AttachmentServiceProxyForTest> Create(); On 2014/04/07 20:23:10, timsteele wrote: ...
6 years, 8 months ago (2014-04-08 17:51:56 UTC) #6
tim (not reviewing)
LGTM with nits. https://codereview.chromium.org/213003004/diff/220001/sync/api/attachments/attachment_service_proxy.h File sync/api/attachments/attachment_service_proxy.h (right): https://codereview.chromium.org/213003004/diff/220001/sync/api/attachments/attachment_service_proxy.h#newcode77 sync/api/attachments/attachment_service_proxy.h:77: class SYNC_EXPORT ForwardingCore nit - I'd ...
6 years, 8 months ago (2014-04-10 18:21:41 UTC) #7
maniscalco
All applied. Thanks for the review. https://codereview.chromium.org/213003004/diff/220001/sync/api/attachments/attachment_service_proxy.h File sync/api/attachments/attachment_service_proxy.h (right): https://codereview.chromium.org/213003004/diff/220001/sync/api/attachments/attachment_service_proxy.h#newcode77 sync/api/attachments/attachment_service_proxy.h:77: class SYNC_EXPORT ForwardingCore ...
6 years, 8 months ago (2014-04-10 20:00:43 UTC) #8
maniscalco
Adding OWNERS of downstream unit tests as TBR reviewers.
6 years, 8 months ago (2014-04-10 20:25:33 UTC) #9
maniscalco
The CQ bit was checked by maniscalco@chromium.org
6 years, 8 months ago (2014-04-10 20:26:42 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maniscalco@chromium.org/213003004/240001
6 years, 8 months ago (2014-04-10 20:26:52 UTC) #11
maniscalco
Adding OWNERS of downstream unit tests as TBR reviewers (for real this time).
6 years, 8 months ago (2014-04-10 20:48:19 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-10 21:44:19 UTC) #13
commit-bot: I haz the power
List of reviewers changed. droger@chromium.org,pkasting@chromium.org,pam@chromium.org,cjhopman@chromium.org,asargent@chromium.org,pkotwicz@chromium.org did a drive-by without LGTM'ing!
6 years, 8 months ago (2014-04-10 21:44:20 UTC) #14
maniscalco
The CQ bit was checked by maniscalco@chromium.org
6 years, 8 months ago (2014-04-10 22:29:15 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maniscalco@chromium.org/213003004/240001
6 years, 8 months ago (2014-04-10 22:30:16 UTC) #16
commit-bot: I haz the power
Change committed as 263128
6 years, 8 months ago (2014-04-10 23:40:16 UTC) #17
Peter Kasting
On 2014/04/10 20:25:33, maniscalco wrote: > Adding OWNERS of downstream unit tests as TBR reviewers. ...
6 years, 8 months ago (2014-04-14 22:48:05 UTC) #18
maniscalco
Thanks, Peter. Sorry about omitting the list. TBR folks would you please review the following ...
6 years, 8 months ago (2014-04-15 16:08:52 UTC) #19
Peter Kasting
6 years, 8 months ago (2014-04-15 19:56:51 UTC) #20
Message was sent while issue was closed.
LGTM

Powered by Google App Engine
This is Rietveld 408576698