diff options
author | maniscalco <maniscalco@chromium.org> | 2014-12-11 09:45:32 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-11 17:45:51 +0000 |
commit | 9c0ced9ccfcbcaed3d9691042aee1e79112a06be (patch) | |
tree | d856754cab92b0abe913ec7a3645f28044081e64 /components/sync_driver/generic_change_processor_unittest.cc | |
parent | dbcac359b488e849202add0ecda41d0a1e927b4d (diff) | |
download | chromium_src-9c0ced9ccfcbcaed3d9691042aee1e79112a06be.zip chromium_src-9c0ced9ccfcbcaed3d9691042aee1e79112a06be.tar.gz chromium_src-9c0ced9ccfcbcaed3d9691042aee1e79112a06be.tar.bz2 |
Include model type in attachment uploads and downloads
Pass model type using EntitySpecifics field number in HTTP header on
attachment uploads and downloads. We use the field number because
that's a sync-standard way of communicating model type to the server.
Update comment for GetSpecificsFieldNumberFromModelType to reflect the
fact that this method is use outside of test code.
BUG=440928
Review URL: https://codereview.chromium.org/785063005
Cr-Commit-Position: refs/heads/master@{#307923}
Diffstat (limited to 'components/sync_driver/generic_change_processor_unittest.cc')
-rw-r--r-- | components/sync_driver/generic_change_processor_unittest.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/components/sync_driver/generic_change_processor_unittest.cc b/components/sync_driver/generic_change_processor_unittest.cc index 922031b..cb0a4fc 100644 --- a/components/sync_driver/generic_change_processor_unittest.cc +++ b/components/sync_driver/generic_change_processor_unittest.cc @@ -93,6 +93,7 @@ class MockSyncApiComponentFactory : public SyncApiComponentFactory { const scoped_refptr<syncer::AttachmentStore>& attachment_store, const syncer::UserShare& user_share, const std::string& store_birthday, + syncer::ModelType model_type, syncer::AttachmentService::Delegate* delegate) override { EXPECT_TRUE(attachment_service_ != NULL); return attachment_service_.Pass(); |