| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #if defined(BROWSER_SYNC) | |
| 6 | |
| 7 #include "build/build_config.h" | 5 #include "build/build_config.h" |
| 8 #include "base/file_version_info.h" | 6 #include "base/file_version_info.h" |
| 9 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 10 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 11 #include "chrome/browser/chrome_thread.h" | 9 #include "chrome/browser/chrome_thread.h" |
| 12 #include "chrome/browser/sync/glue/change_processor.h" | 10 #include "chrome/browser/sync/glue/change_processor.h" |
| 13 #include "chrome/browser/sync/glue/sync_backend_host.h" | 11 #include "chrome/browser/sync/glue/sync_backend_host.h" |
| 14 #include "chrome/browser/sync/glue/http_bridge.h" | 12 #include "chrome/browser/sync/glue/http_bridge.h" |
| 15 #include "chrome/browser/sync/glue/bookmark_model_worker.h" | 13 #include "chrome/browser/sync/glue/bookmark_model_worker.h" |
| 16 #include "webkit/glue/webkit_glue.h" | 14 #include "webkit/glue/webkit_glue.h" |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 save_changes_timer_.Start( | 304 save_changes_timer_.Start( |
| 307 base::TimeDelta::FromSeconds(kSaveChangesIntervalSeconds), | 305 base::TimeDelta::FromSeconds(kSaveChangesIntervalSeconds), |
| 308 this, &Core::SaveChanges); | 306 this, &Core::SaveChanges); |
| 309 } | 307 } |
| 310 | 308 |
| 311 void SyncBackendHost::Core::SaveChanges() { | 309 void SyncBackendHost::Core::SaveChanges() { |
| 312 syncapi_->SaveChanges(); | 310 syncapi_->SaveChanges(); |
| 313 } | 311 } |
| 314 | 312 |
| 315 } // namespace browser_sync | 313 } // namespace browser_sync |
| 316 | |
| 317 #endif // defined(BROWSER_SYNC) | |
| OLD | NEW |