| 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 #ifdef CHROME_PERSONALIZATION | 5 #ifdef CHROME_PERSONALIZATION |
| 6 #include "chrome/browser/sync/profile_sync_service.h" | 6 #include "chrome/browser/sync/profile_sync_service.h" |
| 7 | 7 |
| 8 #include <stack> | 8 #include <stack> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 877 void ProfileSyncService::RemoveObserver(Observer* observer) { | 877 void ProfileSyncService::RemoveObserver(Observer* observer) { |
| 878 observers_.RemoveObserver(observer); | 878 observers_.RemoveObserver(observer); |
| 879 } | 879 } |
| 880 | 880 |
| 881 bool ProfileSyncService::ShouldPushChanges() { | 881 bool ProfileSyncService::ShouldPushChanges() { |
| 882 return ready_to_process_changes_ && // Wait for model load and merge. | 882 return ready_to_process_changes_ && // Wait for model load and merge. |
| 883 !unrecoverable_error_detected_; // Halt after any terrible events. | 883 !unrecoverable_error_detected_; // Halt after any terrible events. |
| 884 } | 884 } |
| 885 | 885 |
| 886 #endif // CHROME_PERSONALIZATION | 886 #endif // CHROME_PERSONALIZATION |
| OLD | NEW |