Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Side by Side Diff: components/sync/engine_impl/all_status.cc

Issue 2387553002: [Sync] Removing duplicated includes between cc and h files. (Closed)
Patch Set: Fixing DataTypeStatusTable Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/sync/engine/polling_constants.cc ('k') | components/sync/engine_impl/commit.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "components/sync/engine_impl/all_status.h" 5 #include "components/sync/engine_impl/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 "components/sync/base/model_type.h"
11 #include "components/sync/engine_impl/net/server_connection_manager.h" 10 #include "components/sync/engine_impl/net/server_connection_manager.h"
12 #include "components/sync/engine_impl/sync_cycle_event.h" 11 #include "components/sync/engine_impl/sync_cycle_event.h"
13 12
14 namespace syncer { 13 namespace syncer {
15 14
16 AllStatus::AllStatus() { 15 AllStatus::AllStatus() {
17 status_.notifications_enabled = false; 16 status_.notifications_enabled = false;
18 status_.cryptographer_ready = false; 17 status_.cryptographer_ready = false;
19 status_.crypto_has_pending_keys = false; 18 status_.crypto_has_pending_keys = false;
20 } 19 }
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 ScopedStatusLock::ScopedStatusLock(AllStatus* allstatus) 183 ScopedStatusLock::ScopedStatusLock(AllStatus* allstatus)
185 : allstatus_(allstatus) { 184 : allstatus_(allstatus) {
186 allstatus->mutex_.Acquire(); 185 allstatus->mutex_.Acquire();
187 } 186 }
188 187
189 ScopedStatusLock::~ScopedStatusLock() { 188 ScopedStatusLock::~ScopedStatusLock() {
190 allstatus_->mutex_.Release(); 189 allstatus_->mutex_.Release();
191 } 190 }
192 191
193 } // namespace syncer 192 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/engine/polling_constants.cc ('k') | components/sync/engine_impl/commit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698