OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/profile_sync_service.h" | 5 #include "chrome/browser/sync/profile_sync_service.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "app/l10n_util.h" | 10 #include "app/l10n_util.h" |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/file_path.h" | 13 #include "base/file_path.h" |
14 #include "base/file_util.h" | 14 #include "base/file_util.h" |
15 #include "base/histogram.h" | 15 #include "base/histogram.h" |
16 #include "base/logging.h" | 16 #include "base/logging.h" |
17 #include "base/stl_util-inl.h" | 17 #include "base/stl_util-inl.h" |
18 #include "base/string_util.h" | 18 #include "base/string_util.h" |
19 #include "base/task.h" | 19 #include "base/task.h" |
| 20 #include "base/utf_string_conversions.h" |
20 #include "chrome/browser/chrome_thread.h" | 21 #include "chrome/browser/chrome_thread.h" |
21 #include "chrome/browser/history/history_types.h" | 22 #include "chrome/browser/history/history_types.h" |
22 #include "chrome/browser/platform_util.h" | 23 #include "chrome/browser/platform_util.h" |
23 #include "chrome/browser/pref_service.h" | 24 #include "chrome/browser/pref_service.h" |
24 #include "chrome/browser/profile.h" | 25 #include "chrome/browser/profile.h" |
25 #include "chrome/browser/net/gaia/token_service.h" | 26 #include "chrome/browser/net/gaia/token_service.h" |
26 #include "chrome/browser/sync/engine/syncapi.h" | 27 #include "chrome/browser/sync/engine/syncapi.h" |
27 #include "chrome/browser/sync/glue/change_processor.h" | 28 #include "chrome/browser/sync/glue/change_processor.h" |
28 #include "chrome/browser/sync/glue/data_type_controller.h" | 29 #include "chrome/browser/sync/glue/data_type_controller.h" |
29 #include "chrome/browser/sync/glue/data_type_manager.h" | 30 #include "chrome/browser/sync/glue/data_type_manager.h" |
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
829 // is initialized, all enabled data types are consistent with one | 830 // is initialized, all enabled data types are consistent with one |
830 // another, and no unrecoverable error has transpired. | 831 // another, and no unrecoverable error has transpired. |
831 if (unrecoverable_error_detected_) | 832 if (unrecoverable_error_detected_) |
832 return false; | 833 return false; |
833 | 834 |
834 if (!data_type_manager_.get()) | 835 if (!data_type_manager_.get()) |
835 return false; | 836 return false; |
836 | 837 |
837 return data_type_manager_->state() == DataTypeManager::CONFIGURED; | 838 return data_type_manager_->state() == DataTypeManager::CONFIGURED; |
838 } | 839 } |
OLD | NEW |