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

Side by Side Diff: components/sync/driver/async_directory_type_controller_unittest.cc

Issue 2799653006: Revert of [Sync] Stop accessing BrowserContextKeyedServiceFactory on non-UI thread. (Closed)
Patch Set: Created 3 years, 8 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/driver/async_directory_type_controller.h" 5 #include "components/sync/driver/async_directory_type_controller.h"
6 6
7 #include <utility> 7 #include <utility>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 ACTION_P(SaveChangeProcessor, scoped_change_processor) { 59 ACTION_P(SaveChangeProcessor, scoped_change_processor) {
60 scoped_change_processor->reset(arg2); 60 scoped_change_processor->reset(arg2);
61 } 61 }
62 62
63 class SharedChangeProcessorMock : public SharedChangeProcessor { 63 class SharedChangeProcessorMock : public SharedChangeProcessor {
64 public: 64 public:
65 explicit SharedChangeProcessorMock(ModelType type) 65 explicit SharedChangeProcessorMock(ModelType type)
66 : SharedChangeProcessor(type) {} 66 : SharedChangeProcessor(type) {}
67 67
68 base::WeakPtr<SyncableService> Connect( 68 base::WeakPtr<SyncableService> Connect(
69 const SyncClient::ServiceProvider&, 69 SyncClient*,
70 SyncApiComponentFactory* driver_factory,
71 GenericChangeProcessorFactory*, 70 GenericChangeProcessorFactory*,
72 UserShare*, 71 UserShare*,
73 std::unique_ptr<DataTypeErrorHandler>, 72 std::unique_ptr<DataTypeErrorHandler>,
74 const base::WeakPtr<SyncMergeResult>&) { 73 const base::WeakPtr<SyncMergeResult>&) {
75 return std::move(connect_return_); 74 return std::move(connect_return_);
76 } 75 }
77 MOCK_METHOD0(Disconnect, bool()); 76 MOCK_METHOD0(Disconnect, bool());
78 MOCK_METHOD2(ProcessSyncChanges, 77 MOCK_METHOD2(ProcessSyncChanges,
79 SyncError(const tracked_objects::Location&, 78 SyncError(const tracked_objects::Location&,
80 const SyncChangeList&)); 79 const SyncChangeList&));
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 backend_thread_.task_runner()->PostTask( 473 backend_thread_.task_runner()->PostTask(
475 FROM_HERE, 474 FROM_HERE,
476 base::Bind(&DataTypeErrorHandler::OnUnrecoverableError, 475 base::Bind(&DataTypeErrorHandler::OnUnrecoverableError,
477 base::Passed(non_ui_dtc_->CreateErrorHandler()), error)); 476 base::Passed(non_ui_dtc_->CreateErrorHandler()), error));
478 WaitForDTC(); 477 WaitForDTC();
479 } 478 }
480 479
481 } // namespace 480 } // namespace
482 481
483 } // namespace syncer 482 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/driver/async_directory_type_controller.cc ('k') | components/sync/driver/directory_data_type_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698