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/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
9 #include "chrome/browser/sync/glue/device_info.h" | 9 #include "chrome/browser/sync/glue/device_info.h" |
10 #include "chrome/browser/sync/glue/invalidation_adapter.h" | 10 #include "chrome/browser/sync/glue/invalidation_adapter.h" |
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
519 | 519 |
520 registrar_->ActivateDataType(syncer::DEVICE_INFO, | 520 registrar_->ActivateDataType(syncer::DEVICE_INFO, |
521 syncer::GROUP_PASSIVE, | 521 syncer::GROUP_PASSIVE, |
522 synced_device_tracker_.get(), | 522 synced_device_tracker_.get(), |
523 sync_manager_->GetUserShare()); | 523 sync_manager_->GetUserShare()); |
524 | 524 |
525 host_.Call(FROM_HERE, | 525 host_.Call(FROM_HERE, |
526 &SyncBackendHostImpl::HandleInitializationSuccessOnFrontendLoop, | 526 &SyncBackendHostImpl::HandleInitializationSuccessOnFrontendLoop, |
527 js_backend_, | 527 js_backend_, |
528 debug_info_listener_, | 528 debug_info_listener_, |
529 sync_manager_->GetSyncContextProxy()); | 529 sync_manager_->GetSyncContextProxy(), |
| 530 sync_manager_->cache_guid()); |
530 | 531 |
531 js_backend_.Reset(); | 532 js_backend_.Reset(); |
532 debug_info_listener_.Reset(); | 533 debug_info_listener_.Reset(); |
533 } | 534 } |
534 | 535 |
535 void SyncBackendHostCore::DoSetDecryptionPassphrase( | 536 void SyncBackendHostCore::DoSetDecryptionPassphrase( |
536 const std::string& passphrase) { | 537 const std::string& passphrase) { |
537 DCHECK_EQ(base::MessageLoop::current(), sync_loop_); | 538 DCHECK_EQ(base::MessageLoop::current(), sync_loop_); |
538 sync_manager_->GetEncryptionHandler()->SetDecryptionPassphrase( | 539 sync_manager_->GetEncryptionHandler()->SetDecryptionPassphrase( |
539 passphrase); | 540 passphrase); |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
745 this, &SyncBackendHostCore::SaveChanges); | 746 this, &SyncBackendHostCore::SaveChanges); |
746 } | 747 } |
747 | 748 |
748 void SyncBackendHostCore::SaveChanges() { | 749 void SyncBackendHostCore::SaveChanges() { |
749 DCHECK_EQ(base::MessageLoop::current(), sync_loop_); | 750 DCHECK_EQ(base::MessageLoop::current(), sync_loop_); |
750 sync_manager_->SaveChanges(); | 751 sync_manager_->SaveChanges(); |
751 } | 752 } |
752 | 753 |
753 } // namespace browser_sync | 754 } // namespace browser_sync |
754 | 755 |
OLD | NEW |