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

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

Issue 367153005: Sync: Refactoring of DEVICE_INFO syncable type - Part 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed scoped_ptr issue in ProfileSyncService constructor Created 6 years, 5 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 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 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 515
516 registrar_->ActivateDataType(syncer::DEVICE_INFO, 516 registrar_->ActivateDataType(syncer::DEVICE_INFO,
517 syncer::GROUP_PASSIVE, 517 syncer::GROUP_PASSIVE,
518 synced_device_tracker_.get(), 518 synced_device_tracker_.get(),
519 sync_manager_->GetUserShare()); 519 sync_manager_->GetUserShare());
520 520
521 host_.Call(FROM_HERE, 521 host_.Call(FROM_HERE,
522 &SyncBackendHostImpl::HandleInitializationSuccessOnFrontendLoop, 522 &SyncBackendHostImpl::HandleInitializationSuccessOnFrontendLoop,
523 js_backend_, 523 js_backend_,
524 debug_info_listener_, 524 debug_info_listener_,
525 sync_manager_->GetSyncContextProxy()); 525 sync_manager_->GetSyncContextProxy(),
526 sync_manager_->cache_guid());
526 527
527 js_backend_.Reset(); 528 js_backend_.Reset();
528 debug_info_listener_.Reset(); 529 debug_info_listener_.Reset();
529 } 530 }
530 531
531 void SyncBackendHostCore::DoSetDecryptionPassphrase( 532 void SyncBackendHostCore::DoSetDecryptionPassphrase(
532 const std::string& passphrase) { 533 const std::string& passphrase) {
533 DCHECK_EQ(base::MessageLoop::current(), sync_loop_); 534 DCHECK_EQ(base::MessageLoop::current(), sync_loop_);
534 sync_manager_->GetEncryptionHandler()->SetDecryptionPassphrase( 535 sync_manager_->GetEncryptionHandler()->SetDecryptionPassphrase(
535 passphrase); 536 passphrase);
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 this, &SyncBackendHostCore::SaveChanges); 742 this, &SyncBackendHostCore::SaveChanges);
742 } 743 }
743 744
744 void SyncBackendHostCore::SaveChanges() { 745 void SyncBackendHostCore::SaveChanges() {
745 DCHECK_EQ(base::MessageLoop::current(), sync_loop_); 746 DCHECK_EQ(base::MessageLoop::current(), sync_loop_);
746 sync_manager_->SaveChanges(); 747 sync_manager_->SaveChanges();
747 } 748 }
748 749
749 } // namespace browser_sync 750 } // namespace browser_sync
750 751
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698