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

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

Issue 7812036: Update base/timer.h code to pass through Location from call sites. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "build/build_config.h" 5 #include "build/build_config.h"
6 6
7 #include "chrome/browser/sync/glue/sync_backend_host.h" 7 #include "chrome/browser/sync/glue/sync_backend_host.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <map> 10 #include <map>
(...skipping 862 matching lines...) Expand 10 before | Expand all | Expand 10 after
873 873
874 DCHECK_EQ(MessageLoop::current(), host_->frontend_loop_); 874 DCHECK_EQ(MessageLoop::current(), host_->frontend_loop_);
875 875
876 host_->last_auth_error_ = new_auth_error; 876 host_->last_auth_error_ = new_auth_error;
877 host_->frontend_->OnAuthError(); 877 host_->frontend_->OnAuthError();
878 } 878 }
879 879
880 void SyncBackendHost::Core::StartSavingChanges() { 880 void SyncBackendHost::Core::StartSavingChanges() {
881 save_changes_timer_.Start( 881 save_changes_timer_.Start(
882 base::TimeDelta::FromSeconds(kSaveChangesIntervalSeconds), 882 base::TimeDelta::FromSeconds(kSaveChangesIntervalSeconds),
883 this, &Core::SaveChanges); 883 this, &Core::SaveChanges, FROM_HERE);
884 } 884 }
885 885
886 void SyncBackendHost::Core::DoRequestClearServerData() { 886 void SyncBackendHost::Core::DoRequestClearServerData() {
887 sync_manager_->RequestClearServerData(); 887 sync_manager_->RequestClearServerData();
888 } 888 }
889 889
890 void SyncBackendHost::Core::DoRequestCleanupDisabledTypes() { 890 void SyncBackendHost::Core::DoRequestCleanupDisabledTypes() {
891 sync_manager_->RequestCleanupDisabledTypes(); 891 sync_manager_->RequestCleanupDisabledTypes();
892 } 892 }
893 893
894 void SyncBackendHost::Core::SaveChanges() { 894 void SyncBackendHost::Core::SaveChanges() {
895 sync_manager_->SaveChanges(); 895 sync_manager_->SaveChanges();
896 } 896 }
897 897
898 void SyncBackendHost::Core::DeleteSyncDataFolder() { 898 void SyncBackendHost::Core::DeleteSyncDataFolder() {
899 if (file_util::DirectoryExists(host_->sync_data_folder_path())) { 899 if (file_util::DirectoryExists(host_->sync_data_folder_path())) {
900 if (!file_util::Delete(host_->sync_data_folder_path(), true)) 900 if (!file_util::Delete(host_->sync_data_folder_path(), true))
901 LOG(DFATAL) << "Could not delete the Sync Data folder."; 901 LOG(DFATAL) << "Could not delete the Sync Data folder.";
902 } 902 }
903 } 903 }
904 904
905 } // namespace browser_sync 905 } // namespace browser_sync
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698