OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/sessions/sync_session.h" | 5 #include "sync/sessions/sync_session.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "chrome/browser/sync/syncable/model_type.h" | 10 #include "sync/syncable/model_type.h" |
11 #include "chrome/browser/sync/syncable/syncable.h" | 11 #include "sync/syncable/syncable.h" |
12 | 12 |
13 namespace browser_sync { | 13 namespace browser_sync { |
14 namespace sessions { | 14 namespace sessions { |
15 | 15 |
16 namespace { | 16 namespace { |
17 | 17 |
18 std::set<ModelSafeGroup> ComputeEnabledGroups( | 18 std::set<ModelSafeGroup> ComputeEnabledGroups( |
19 const ModelSafeRoutingInfo& routing_info, | 19 const ModelSafeRoutingInfo& routing_info, |
20 const std::vector<ModelSafeWorker*>& workers) { | 20 const std::vector<ModelSafeWorker*>& workers) { |
21 std::set<ModelSafeGroup> enabled_groups; | 21 std::set<ModelSafeGroup> enabled_groups; |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 IsError(status_controller_->error().last_post_commit_result); | 244 IsError(status_controller_->error().last_post_commit_result); |
245 const bool process_commit_response_error = | 245 const bool process_commit_response_error = |
246 IsError(status_controller_->error().last_process_commit_response_result); | 246 IsError(status_controller_->error().last_process_commit_response_result); |
247 return !download_updates_error | 247 return !download_updates_error |
248 && !post_commit_error | 248 && !post_commit_error |
249 && !process_commit_response_error; | 249 && !process_commit_response_error; |
250 } | 250 } |
251 | 251 |
252 } // namespace sessions | 252 } // namespace sessions |
253 } // namespace browser_sync | 253 } // namespace browser_sync |
OLD | NEW |