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

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

Issue 9699057: [Sync] Move 'sync' target to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix some minor diffs Created 8 years, 9 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
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 "chrome/browser/sync/engine/all_status.h" 5 #include "chrome/browser/sync/internal_api/all_status.h"
tim (not reviewing) 2012/03/15 06:21:10 I guess this does feel more at home here in /inter
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 "chrome/browser/sync/engine/net/server_connection_manager.h" 11 #include "sync/engine/net/server_connection_manager.h"
12 #include "chrome/browser/sync/protocol/service_constants.h" 12 #include "sync/protocol/service_constants.h"
13 #include "chrome/browser/sync/sessions/session_state.h" 13 #include "sync/sessions/session_state.h"
14 #include "chrome/browser/sync/syncable/model_type.h" 14 #include "sync/syncable/model_type.h"
15 15
16 namespace browser_sync { 16 namespace browser_sync {
17 17
18 AllStatus::AllStatus() { 18 AllStatus::AllStatus() {
19 status_.summary = sync_api::SyncManager::Status::OFFLINE; 19 status_.summary = sync_api::SyncManager::Status::OFFLINE;
20 status_.initial_sync_ended = true; 20 status_.initial_sync_ended = true;
21 status_.notifications_enabled = false; 21 status_.notifications_enabled = false;
22 status_.cryptographer_ready = false; 22 status_.cryptographer_ready = false;
23 status_.crypto_has_pending_keys = false; 23 status_.crypto_has_pending_keys = false;
24 } 24 }
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 : allstatus_(allstatus) { 189 : allstatus_(allstatus) {
190 allstatus->mutex_.Acquire(); 190 allstatus->mutex_.Acquire();
191 } 191 }
192 192
193 ScopedStatusLock::~ScopedStatusLock() { 193 ScopedStatusLock::~ScopedStatusLock() {
194 allstatus_->CalcStatusChanges(); 194 allstatus_->CalcStatusChanges();
195 allstatus_->mutex_.Release(); 195 allstatus_->mutex_.Release();
196 } 196 }
197 197
198 } // namespace browser_sync 198 } // namespace browser_sync
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698