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

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

Issue 7825026: Revert "Currently, base/timer.cc calls PostTask with FROM_HERE as the Location, (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 878 matching lines...) Expand 10 before | Expand all | Expand 10 after
889 if (!host_ || !host_->frontend_) 889 if (!host_ || !host_->frontend_)
890 return; 890 return;
891 891
892 DCHECK_EQ(MessageLoop::current(), host_->frontend_loop_); 892 DCHECK_EQ(MessageLoop::current(), host_->frontend_loop_);
893 893
894 host_->last_auth_error_ = new_auth_error; 894 host_->last_auth_error_ = new_auth_error;
895 host_->frontend_->OnAuthError(); 895 host_->frontend_->OnAuthError();
896 } 896 }
897 897
898 void SyncBackendHost::Core::StartSavingChanges() { 898 void SyncBackendHost::Core::StartSavingChanges() {
899 save_changes_timer_.Start(FROM_HERE, 899 save_changes_timer_.Start(
900 base::TimeDelta::FromSeconds(kSaveChangesIntervalSeconds), 900 base::TimeDelta::FromSeconds(kSaveChangesIntervalSeconds),
901 this, &Core::SaveChanges); 901 this, &Core::SaveChanges);
902 } 902 }
903 903
904 void SyncBackendHost::Core::DoRequestClearServerData() { 904 void SyncBackendHost::Core::DoRequestClearServerData() {
905 sync_manager_->RequestClearServerData(); 905 sync_manager_->RequestClearServerData();
906 } 906 }
907 907
908 void SyncBackendHost::Core::DoRequestCleanupDisabledTypes() { 908 void SyncBackendHost::Core::DoRequestCleanupDisabledTypes() {
909 sync_manager_->RequestCleanupDisabledTypes(); 909 sync_manager_->RequestCleanupDisabledTypes();
910 } 910 }
911 911
912 void SyncBackendHost::Core::SaveChanges() { 912 void SyncBackendHost::Core::SaveChanges() {
913 sync_manager_->SaveChanges(); 913 sync_manager_->SaveChanges();
914 } 914 }
915 915
916 void SyncBackendHost::Core::DeleteSyncDataFolder() { 916 void SyncBackendHost::Core::DeleteSyncDataFolder() {
917 if (file_util::DirectoryExists(host_->sync_data_folder_path())) { 917 if (file_util::DirectoryExists(host_->sync_data_folder_path())) {
918 if (!file_util::Delete(host_->sync_data_folder_path(), true)) 918 if (!file_util::Delete(host_->sync_data_folder_path(), true))
919 SLOG(DFATAL) << "Could not delete the Sync Data folder."; 919 SLOG(DFATAL) << "Could not delete the Sync Data folder.";
920 } 920 }
921 } 921 }
922 922
923 #undef SVLOG 923 #undef SVLOG
924 924
925 #undef SLOG 925 #undef SLOG
926 926
927 } // namespace browser_sync 927 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/database_model_worker_unittest.cc ('k') | chrome/browser/sync/notifier/registration_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698