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

Side by Side Diff: components/sync_driver/glue/sync_backend_registrar.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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/glue/sync_backend_registrar.h" 5 #include "components/sync_driver/glue/sync_backend_registrar.h"
6 6
7 #include <cstddef> 7 #include <cstddef>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
13 #include "components/sync/core/user_share.h"
13 #include "components/sync_driver/change_processor.h" 14 #include "components/sync_driver/change_processor.h"
14 #include "components/sync_driver/sync_client.h" 15 #include "components/sync_driver/sync_client.h"
15 #include "sync/internal_api/public/user_share.h"
16 16
17 namespace browser_sync { 17 namespace browser_sync {
18 18
19 SyncBackendRegistrar::SyncBackendRegistrar( 19 SyncBackendRegistrar::SyncBackendRegistrar(
20 const std::string& name, 20 const std::string& name,
21 sync_driver::SyncClient* sync_client, 21 sync_driver::SyncClient* sync_client,
22 std::unique_ptr<base::Thread> sync_thread, 22 std::unique_ptr<base::Thread> sync_thread,
23 const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread, 23 const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread,
24 const scoped_refptr<base::SingleThreadTaskRunner>& db_thread, 24 const scoped_refptr<base::SingleThreadTaskRunner>& db_thread,
25 const scoped_refptr<base::SingleThreadTaskRunner>& file_thread) 25 const scoped_refptr<base::SingleThreadTaskRunner>& file_thread)
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 372
373 syncer::ModelSafeGroup SyncBackendRegistrar::GetInitialGroupForType( 373 syncer::ModelSafeGroup SyncBackendRegistrar::GetInitialGroupForType(
374 syncer::ModelType type) const { 374 syncer::ModelType type) const {
375 if (non_blocking_types_.Has(type)) 375 if (non_blocking_types_.Has(type))
376 return syncer::GROUP_NON_BLOCKING; 376 return syncer::GROUP_NON_BLOCKING;
377 else 377 else
378 return syncer::GROUP_PASSIVE; 378 return syncer::GROUP_PASSIVE;
379 } 379 }
380 380
381 } // namespace browser_sync 381 } // namespace browser_sync
OLDNEW
« no previous file with comments | « components/sync_driver/glue/sync_backend_registrar.h ('k') | components/sync_driver/glue/sync_backend_registrar_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698