| 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/internal_api/all_status.h" | 5 #include "sync/internal_api/all_status.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/port.h" | 10 #include "base/port.h" |
| 11 #include "sync/engine/net/server_connection_manager.h" | 11 #include "sync/engine/net/server_connection_manager.h" |
| 12 #include "sync/protocol/service_constants.h" | 12 #include "sync/protocol/service_constants.h" |
| 13 #include "sync/sessions/session_state.h" | 13 #include "sync/sessions/session_state.h" |
| 14 #include "sync/syncable/model_type.h" | 14 #include "sync/syncable/model_type.h" |
| 15 | 15 |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 ScopedStatusLock::ScopedStatusLock(AllStatus* allstatus) | 158 ScopedStatusLock::ScopedStatusLock(AllStatus* allstatus) |
| 159 : allstatus_(allstatus) { | 159 : allstatus_(allstatus) { |
| 160 allstatus->mutex_.Acquire(); | 160 allstatus->mutex_.Acquire(); |
| 161 } | 161 } |
| 162 | 162 |
| 163 ScopedStatusLock::~ScopedStatusLock() { | 163 ScopedStatusLock::~ScopedStatusLock() { |
| 164 allstatus_->mutex_.Release(); | 164 allstatus_->mutex_.Release(); |
| 165 } | 165 } |
| 166 | 166 |
| 167 } // namespace browser_sync | 167 } // namespace browser_sync |
| OLD | NEW |