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

Side by Side Diff: components/sync/core_impl/sync_manager_impl.cc

Issue 2382443006: Sync MDP: implement MemoryDumpProvider
Patch Set: Created 4 years, 2 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/core_impl/sync_manager_impl.h" 5 #include "components/sync/core_impl/sync_manager_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after
876 LOG(WARNING) << "Sync received refresh request with no types specified."; 876 LOG(WARNING) << "Sync received refresh request with no types specified.";
877 } else { 877 } else {
878 scheduler_->ScheduleLocalRefreshRequest(types, FROM_HERE); 878 scheduler_->ScheduleLocalRefreshRequest(types, FROM_HERE);
879 } 879 }
880 } 880 }
881 881
882 SyncStatus SyncManagerImpl::GetDetailedStatus() const { 882 SyncStatus SyncManagerImpl::GetDetailedStatus() const {
883 return allstatus_.status(); 883 return allstatus_.status();
884 } 884 }
885 885
886 void SyncManagerImpl::OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd) {
887 directory()->OnMemoryDump(pmd);
888 }
889
886 void SyncManagerImpl::SaveChanges() { 890 void SyncManagerImpl::SaveChanges() {
887 directory()->SaveChanges(); 891 directory()->SaveChanges();
888 } 892 }
889 893
890 UserShare* SyncManagerImpl::GetUserShare() { 894 UserShare* SyncManagerImpl::GetUserShare() {
891 DCHECK(initialized_); 895 DCHECK(initialized_);
892 return &share_; 896 return &share_;
893 } 897 }
894 898
895 std::unique_ptr<syncer_v2::ModelTypeConnector> 899 std::unique_ptr<syncer_v2::ModelTypeConnector>
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
991 } 995 }
992 996
993 void SyncManagerImpl::OnCookieJarChanged(bool account_mismatch, 997 void SyncManagerImpl::OnCookieJarChanged(bool account_mismatch,
994 bool empty_jar) { 998 bool empty_jar) {
995 DCHECK(thread_checker_.CalledOnValidThread()); 999 DCHECK(thread_checker_.CalledOnValidThread());
996 cycle_context_->set_cookie_jar_mismatch(account_mismatch); 1000 cycle_context_->set_cookie_jar_mismatch(account_mismatch);
997 cycle_context_->set_cookie_jar_empty(empty_jar); 1001 cycle_context_->set_cookie_jar_empty(empty_jar);
998 } 1002 }
999 1003
1000 } // namespace syncer 1004 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/core_impl/sync_manager_impl.h ('k') | components/sync/core_impl/test/fake_sync_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698