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

Side by Side Diff: sync/internal_api/sync_manager_impl.cc

Issue 2084243004: [WIP][tracing] Add memory dump provider for sync Directory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes. Created 4 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 (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 "sync/internal_api/sync_manager_impl.h" 5 #include "sync/internal_api/sync_manager_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 902 matching lines...) Expand 10 before | Expand all | Expand 10 after
913 } else { 913 } else {
914 scheduler_->ScheduleLocalRefreshRequest( 914 scheduler_->ScheduleLocalRefreshRequest(
915 types, FROM_HERE); 915 types, FROM_HERE);
916 } 916 }
917 } 917 }
918 918
919 SyncStatus SyncManagerImpl::GetDetailedStatus() const { 919 SyncStatus SyncManagerImpl::GetDetailedStatus() const {
920 return allstatus_.status(); 920 return allstatus_.status();
921 } 921 }
922 922
923 void SyncManagerImpl::OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd) {
924 directory()->OnMemoryDump(pmd);
925 }
926
923 void SyncManagerImpl::SaveChanges() { 927 void SyncManagerImpl::SaveChanges() {
924 directory()->SaveChanges(); 928 directory()->SaveChanges();
925 } 929 }
926 930
927 UserShare* SyncManagerImpl::GetUserShare() { 931 UserShare* SyncManagerImpl::GetUserShare() {
928 DCHECK(initialized_); 932 DCHECK(initialized_);
929 return &share_; 933 return &share_;
930 } 934 }
931 935
932 std::unique_ptr<syncer_v2::ModelTypeConnector> 936 std::unique_ptr<syncer_v2::ModelTypeConnector>
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
1027 } 1031 }
1028 1032
1029 void SyncManagerImpl::OnCookieJarChanged(bool account_mismatch, 1033 void SyncManagerImpl::OnCookieJarChanged(bool account_mismatch,
1030 bool empty_jar) { 1034 bool empty_jar) {
1031 DCHECK(thread_checker_.CalledOnValidThread()); 1035 DCHECK(thread_checker_.CalledOnValidThread());
1032 session_context_->set_cookie_jar_mismatch(account_mismatch); 1036 session_context_->set_cookie_jar_mismatch(account_mismatch);
1033 session_context_->set_cookie_jar_empty(empty_jar); 1037 session_context_->set_cookie_jar_empty(empty_jar);
1034 } 1038 }
1035 1039
1036 } // namespace syncer 1040 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698