| OLD | NEW |
| 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 "chrome/browser/sync/profile_sync_service.h" | 5 #include "chrome/browser/sync/profile_sync_service.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <map> | 8 #include <map> |
| 9 #include <ostream> | 9 #include <ostream> |
| 10 #include <set> | 10 #include <set> |
| 11 #include <utility> | 11 #include <utility> |
| 12 | 12 |
| 13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
| 14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
| 15 #include "base/compiler_specific.h" | 15 #include "base/compiler_specific.h" |
| 16 #include "base/logging.h" | 16 #include "base/logging.h" |
| 17 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
| 18 #include "base/message_loop.h" | 18 #include "base/message_loop.h" |
| 19 #include "base/metrics/histogram.h" | 19 #include "base/metrics/histogram.h" |
| 20 #include "base/string16.h" | 20 #include "base/string16.h" |
| 21 #include "base/stringprintf.h" | 21 #include "base/stringprintf.h" |
| 22 #include "base/task.h" | 22 #include "base/task.h" |
| 23 #include "base/threading/thread_restrictions.h" |
| 23 #include "chrome/browser/net/gaia/token_service.h" | 24 #include "chrome/browser/net/gaia/token_service.h" |
| 24 #include "chrome/browser/platform_util.h" | 25 #include "chrome/browser/platform_util.h" |
| 25 #include "chrome/browser/prefs/pref_service.h" | 26 #include "chrome/browser/prefs/pref_service.h" |
| 26 #include "chrome/browser/profiles/profile.h" | 27 #include "chrome/browser/profiles/profile.h" |
| 27 #include "chrome/browser/sync/backend_migrator.h" | 28 #include "chrome/browser/sync/backend_migrator.h" |
| 28 #include "chrome/browser/sync/engine/syncapi.h" | 29 #include "chrome/browser/sync/engine/syncapi.h" |
| 29 #include "chrome/browser/sync/glue/change_processor.h" | 30 #include "chrome/browser/sync/glue/change_processor.h" |
| 30 #include "chrome/browser/sync/glue/data_type_controller.h" | 31 #include "chrome/browser/sync/glue/data_type_controller.h" |
| 31 #include "chrome/browser/sync/glue/data_type_manager.h" | 32 #include "chrome/browser/sync/glue/data_type_manager.h" |
| 32 #include "chrome/browser/sync/glue/session_data_type_controller.h" | 33 #include "chrome/browser/sync/glue/session_data_type_controller.h" |
| (...skipping 1252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1285 // is initialized, all enabled data types are consistent with one | 1286 // is initialized, all enabled data types are consistent with one |
| 1286 // another, and no unrecoverable error has transpired. | 1287 // another, and no unrecoverable error has transpired. |
| 1287 if (unrecoverable_error_detected_) | 1288 if (unrecoverable_error_detected_) |
| 1288 return false; | 1289 return false; |
| 1289 | 1290 |
| 1290 if (!data_type_manager_.get()) | 1291 if (!data_type_manager_.get()) |
| 1291 return false; | 1292 return false; |
| 1292 | 1293 |
| 1293 return data_type_manager_->state() == DataTypeManager::CONFIGURED; | 1294 return data_type_manager_->state() == DataTypeManager::CONFIGURED; |
| 1294 } | 1295 } |
| OLD | NEW |