OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/sync_driver/model_association_manager.h" | 5 #include "components/sync_driver/model_association_manager.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <functional> | 8 #include <functional> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 | 412 |
413 // Need to reset state before invoking delegate in order to avoid re-entrancy | 413 // Need to reset state before invoking delegate in order to avoid re-entrancy |
414 // issues (delegate may trigger a reconfiguration). | 414 // issues (delegate may trigger a reconfiguration). |
415 associating_types_.Clear(); | 415 associating_types_.Clear(); |
416 requested_types_.Clear(); | 416 requested_types_.Clear(); |
417 state_ = new_state; | 417 state_ = new_state; |
418 | 418 |
419 delegate_->OnModelAssociationDone(result); | 419 delegate_->OnModelAssociationDone(result); |
420 } | 420 } |
421 | 421 |
422 base::OneShotTimer<ModelAssociationManager>* | 422 base::OneShotTimer* ModelAssociationManager::GetTimerForTesting() { |
423 ModelAssociationManager::GetTimerForTesting() { | |
424 return &timer_; | 423 return &timer_; |
425 } | 424 } |
426 | 425 |
427 } // namespace sync_driver | 426 } // namespace sync_driver |
OLD | NEW |