| OLD | NEW |
| 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_core.h" | 5 #include "chrome/browser/sync/glue/sync_backend_host_core.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
| 10 #include "chrome/browser/sync/glue/device_info.h" | 10 #include "chrome/browser/sync/glue/device_info.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 } // namespace | 45 } // namespace |
| 46 | 46 |
| 47 namespace browser_sync { | 47 namespace browser_sync { |
| 48 | 48 |
| 49 DoInitializeOptions::DoInitializeOptions( | 49 DoInitializeOptions::DoInitializeOptions( |
| 50 base::MessageLoop* sync_loop, | 50 base::MessageLoop* sync_loop, |
| 51 SyncBackendRegistrar* registrar, | 51 SyncBackendRegistrar* registrar, |
| 52 const syncer::ModelSafeRoutingInfo& routing_info, | 52 const syncer::ModelSafeRoutingInfo& routing_info, |
| 53 const std::vector<syncer::ModelSafeWorker*>& workers, | 53 const std::vector<scoped_refptr<syncer::ModelSafeWorker> >& workers, |
| 54 const scoped_refptr<syncer::ExtensionsActivity>& extensions_activity, | 54 const scoped_refptr<syncer::ExtensionsActivity>& extensions_activity, |
| 55 const syncer::WeakHandle<syncer::JsEventHandler>& event_handler, | 55 const syncer::WeakHandle<syncer::JsEventHandler>& event_handler, |
| 56 const GURL& service_url, | 56 const GURL& service_url, |
| 57 scoped_ptr<syncer::HttpPostProviderFactory> http_bridge_factory, | 57 scoped_ptr<syncer::HttpPostProviderFactory> http_bridge_factory, |
| 58 const syncer::SyncCredentials& credentials, | 58 const syncer::SyncCredentials& credentials, |
| 59 const std::string& invalidator_client_id, | 59 const std::string& invalidator_client_id, |
| 60 scoped_ptr<syncer::SyncManagerFactory> sync_manager_factory, | 60 scoped_ptr<syncer::SyncManagerFactory> sync_manager_factory, |
| 61 bool delete_sync_data_folder, | 61 bool delete_sync_data_folder, |
| 62 const std::string& restored_key_for_bootstrapping, | 62 const std::string& restored_key_for_bootstrapping, |
| 63 const std::string& restored_keystore_key_for_bootstrapping, | 63 const std::string& restored_keystore_key_for_bootstrapping, |
| (...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 613 this, &SyncBackendHostCore::SaveChanges); | 613 this, &SyncBackendHostCore::SaveChanges); |
| 614 } | 614 } |
| 615 | 615 |
| 616 void SyncBackendHostCore::SaveChanges() { | 616 void SyncBackendHostCore::SaveChanges() { |
| 617 DCHECK_EQ(base::MessageLoop::current(), sync_loop_); | 617 DCHECK_EQ(base::MessageLoop::current(), sync_loop_); |
| 618 sync_manager_->SaveChanges(); | 618 sync_manager_->SaveChanges(); |
| 619 } | 619 } |
| 620 | 620 |
| 621 } // namespace browser_sync | 621 } // namespace browser_sync |
| 622 | 622 |
| OLD | NEW |