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

Side by Side Diff: chrome/browser/sync/glue/sync_backend_host_impl.cc

Issue 195873020: [Sync] Move SyncPrefs into sync_driver component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rerererebase Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chrome/browser/sync/glue/sync_backend_host_impl.h" 5 #include "chrome/browser/sync/glue/sync_backend_host_impl.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/browser/chrome_notification_types.h" 8 #include "chrome/browser/chrome_notification_types.h"
9 #include "chrome/browser/invalidation/invalidation_service.h" 9 #include "chrome/browser/invalidation/invalidation_service.h"
10 #include "chrome/browser/invalidation/invalidation_service_factory.h" 10 #include "chrome/browser/invalidation/invalidation_service_factory.h"
11 #include "chrome/browser/network_time/network_time_tracker.h" 11 #include "chrome/browser/network_time/network_time_tracker.h"
12 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/browser/sync/glue/sync_backend_host_core.h" 13 #include "chrome/browser/sync/glue/sync_backend_host_core.h"
14 #include "chrome/browser/sync/glue/sync_backend_registrar.h" 14 #include "chrome/browser/sync/glue/sync_backend_registrar.h"
15 #include "chrome/browser/sync/sync_prefs.h"
16 #include "chrome/common/chrome_switches.h" 15 #include "chrome/common/chrome_switches.h"
17 #include "components/sync_driver/sync_frontend.h" 16 #include "components/sync_driver/sync_frontend.h"
17 #include "components/sync_driver/sync_prefs.h"
18 #include "content/public/browser/browser_thread.h" 18 #include "content/public/browser/browser_thread.h"
19 #include "content/public/browser/notification_details.h" 19 #include "content/public/browser/notification_details.h"
20 #include "content/public/browser/notification_source.h" 20 #include "content/public/browser/notification_source.h"
21 #include "sync/internal_api/public/base_transaction.h" 21 #include "sync/internal_api/public/base_transaction.h"
22 #include "sync/internal_api/public/http_bridge.h" 22 #include "sync/internal_api/public/http_bridge.h"
23 #include "sync/internal_api/public/internal_components_factory.h" 23 #include "sync/internal_api/public/internal_components_factory.h"
24 #include "sync/internal_api/public/internal_components_factory_impl.h" 24 #include "sync/internal_api/public/internal_components_factory_impl.h"
25 #include "sync/internal_api/public/network_resources.h" 25 #include "sync/internal_api/public/network_resources.h"
26 #include "sync/internal_api/public/sync_manager.h" 26 #include "sync/internal_api/public/sync_manager.h"
27 #include "sync/internal_api/public/sync_manager_factory.h" 27 #include "sync/internal_api/public/sync_manager_factory.h"
(...skipping 11 matching lines...) Expand all
39 using syncer::InternalComponentsFactory; 39 using syncer::InternalComponentsFactory;
40 40
41 static const base::FilePath::CharType kSyncDataFolderName[] = 41 static const base::FilePath::CharType kSyncDataFolderName[] =
42 FILE_PATH_LITERAL("Sync Data"); 42 FILE_PATH_LITERAL("Sync Data");
43 43
44 namespace browser_sync { 44 namespace browser_sync {
45 45
46 SyncBackendHostImpl::SyncBackendHostImpl( 46 SyncBackendHostImpl::SyncBackendHostImpl(
47 const std::string& name, 47 const std::string& name,
48 Profile* profile, 48 Profile* profile,
49 const base::WeakPtr<SyncPrefs>& sync_prefs) 49 const base::WeakPtr<sync_driver::SyncPrefs>& sync_prefs)
50 : frontend_loop_(base::MessageLoop::current()), 50 : frontend_loop_(base::MessageLoop::current()),
51 profile_(profile), 51 profile_(profile),
52 name_(name), 52 name_(name),
53 initialized_(false), 53 initialized_(false),
54 sync_prefs_(sync_prefs), 54 sync_prefs_(sync_prefs),
55 frontend_(NULL), 55 frontend_(NULL),
56 cached_passphrase_type_(syncer::IMPLICIT_PASSPHRASE), 56 cached_passphrase_type_(syncer::IMPLICIT_PASSPHRASE),
57 invalidator_( 57 invalidator_(
58 invalidation::InvalidationServiceFactory::GetForProfile(profile)), 58 invalidation::InvalidationServiceFactory::GetForProfile(profile)),
59 invalidation_handler_registered_(false), 59 invalidation_handler_registered_(false),
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 base::MessageLoop* SyncBackendHostImpl::GetSyncLoopForTesting() { 747 base::MessageLoop* SyncBackendHostImpl::GetSyncLoopForTesting() {
748 return registrar_->sync_thread()->message_loop(); 748 return registrar_->sync_thread()->message_loop();
749 } 749 }
750 750
751 } // namespace browser_sync 751 } // namespace browser_sync
752 752
753 #undef SDVLOG 753 #undef SDVLOG
754 754
755 #undef SLOG 755 #undef SLOG
756 756
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host_impl.h ('k') | chrome/browser/sync/glue/sync_backend_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698