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

Side by Side Diff: components/sync/core_impl/attachments/attachment_service_impl.cc

Issue 2388973002: [Sync] Removing duplicate includes, part 2. (Closed)
Patch Set: Update for Max's comments. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/sync/core/attachments/attachment_service_impl.h" 5 #include "components/sync/core/attachments/attachment_service_impl.h"
6 6
7 #include <iterator> 7 #include <iterator>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/location.h" 11 #include "base/location.h"
12 #include "base/macros.h"
13 #include "base/single_thread_task_runner.h" 12 #include "base/single_thread_task_runner.h"
14 #include "base/threading/thread_task_runner_handle.h" 13 #include "base/threading/thread_task_runner_handle.h"
15 #include "base/time/time.h" 14 #include "base/time/time.h"
16 #include "components/sync/api/attachments/attachment.h" 15 #include "components/sync/api/attachments/attachment.h"
17 #include "components/sync/core/attachments/fake_attachment_downloader.h" 16 #include "components/sync/core/attachments/fake_attachment_downloader.h"
18 #include "components/sync/core/attachments/fake_attachment_uploader.h" 17 #include "components/sync/core/attachments/fake_attachment_uploader.h"
19 18
20 namespace syncer { 19 namespace syncer {
21 20
22 // GetOrDownloadAttachments starts multiple parallel DownloadAttachment calls. 21 // GetOrDownloadAttachments starts multiple parallel DownloadAttachment calls.
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 weak_ptr_factory_.GetWeakPtr())); 319 weak_ptr_factory_.GetWeakPtr()));
321 } 320 }
322 } 321 }
323 322
324 void AttachmentServiceImpl::SetTimerForTest( 323 void AttachmentServiceImpl::SetTimerForTest(
325 std::unique_ptr<base::Timer> timer) { 324 std::unique_ptr<base::Timer> timer) {
326 upload_task_queue_->SetTimerForTest(std::move(timer)); 325 upload_task_queue_->SetTimerForTest(std::move(timer));
327 } 326 }
328 327
329 } // namespace syncer 328 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698