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

Side by Side Diff: sync/internal_api/all_status.cc

Issue 10398051: [Sync] Replace TalkMediator*/MediatorThread* with PushClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments, fix test Created 8 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « sync/engine/syncer_proto_util.cc ('k') | sync/notifier/invalidation_notifier.h » ('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 "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"
13 #include "sync/sessions/session_state.h" 12 #include "sync/sessions/session_state.h"
14 #include "sync/syncable/model_type.h" 13 #include "sync/syncable/model_type.h"
15 14
16 namespace browser_sync { 15 namespace browser_sync {
17 16
18 AllStatus::AllStatus() { 17 AllStatus::AllStatus() {
19 status_.initial_sync_ended = true; 18 status_.initial_sync_ended = true;
20 status_.notifications_enabled = false; 19 status_.notifications_enabled = false;
21 status_.cryptographer_ready = false; 20 status_.cryptographer_ready = false;
22 status_.crypto_has_pending_keys = false; 21 status_.crypto_has_pending_keys = false;
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 ScopedStatusLock::ScopedStatusLock(AllStatus* allstatus) 157 ScopedStatusLock::ScopedStatusLock(AllStatus* allstatus)
159 : allstatus_(allstatus) { 158 : allstatus_(allstatus) {
160 allstatus->mutex_.Acquire(); 159 allstatus->mutex_.Acquire();
161 } 160 }
162 161
163 ScopedStatusLock::~ScopedStatusLock() { 162 ScopedStatusLock::~ScopedStatusLock() {
164 allstatus_->mutex_.Release(); 163 allstatus_->mutex_.Release();
165 } 164 }
166 165
167 } // namespace browser_sync 166 } // namespace browser_sync
OLDNEW
« no previous file with comments | « sync/engine/syncer_proto_util.cc ('k') | sync/notifier/invalidation_notifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698