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

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

Issue 153643006: sync: Remove dead code related to ClearUserData (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
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/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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 syncer::BootstrapTokenType type) { 254 syncer::BootstrapTokenType type) {
255 if (!sync_loop_) 255 if (!sync_loop_)
256 return; 256 return;
257 DCHECK_EQ(base::MessageLoop::current(), sync_loop_); 257 DCHECK_EQ(base::MessageLoop::current(), sync_loop_);
258 host_.Call(FROM_HERE, 258 host_.Call(FROM_HERE,
259 &SyncBackendHostImpl::PersistEncryptionBootstrapToken, 259 &SyncBackendHostImpl::PersistEncryptionBootstrapToken,
260 bootstrap_token, 260 bootstrap_token,
261 type); 261 type);
262 } 262 }
263 263
264 void SyncBackendHostCore::OnStopSyncingPermanently() {
265 if (!sync_loop_)
266 return;
267 DCHECK_EQ(base::MessageLoop::current(), sync_loop_);
268 host_.Call(
269 FROM_HERE,
270 &SyncBackendHostImpl::HandleStopSyncingPermanentlyOnFrontendLoop);
271 }
272
273 void SyncBackendHostCore::OnEncryptedTypesChanged( 264 void SyncBackendHostCore::OnEncryptedTypesChanged(
274 syncer::ModelTypeSet encrypted_types, 265 syncer::ModelTypeSet encrypted_types,
275 bool encrypt_everything) { 266 bool encrypt_everything) {
276 if (!sync_loop_) 267 if (!sync_loop_)
277 return; 268 return;
278 DCHECK_EQ(base::MessageLoop::current(), sync_loop_); 269 DCHECK_EQ(base::MessageLoop::current(), sync_loop_);
279 // NOTE: We're in a transaction. 270 // NOTE: We're in a transaction.
280 host_.Call( 271 host_.Call(
281 FROM_HERE, 272 FROM_HERE,
282 &SyncBackendHostImpl::NotifyEncryptedTypesChanged, 273 &SyncBackendHostImpl::NotifyEncryptedTypesChanged,
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
613 this, &SyncBackendHostCore::SaveChanges); 604 this, &SyncBackendHostCore::SaveChanges);
614 } 605 }
615 606
616 void SyncBackendHostCore::SaveChanges() { 607 void SyncBackendHostCore::SaveChanges() {
617 DCHECK_EQ(base::MessageLoop::current(), sync_loop_); 608 DCHECK_EQ(base::MessageLoop::current(), sync_loop_);
618 sync_manager_->SaveChanges(); 609 sync_manager_->SaveChanges();
619 } 610 }
620 611
621 } // namespace browser_sync 612 } // namespace browser_sync
622 613
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host_core.h ('k') | chrome/browser/sync/glue/sync_backend_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698