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

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

Issue 2376123003: [Sync] Move //components/sync to the syncer namespace. (Closed)
Patch Set: Fix tools and iOS. 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
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/syncer.h" 5 #include "components/sync/engine_impl/syncer.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 25 matching lines...) Expand all
36 namespace syncer { 36 namespace syncer {
37 37
38 // TODO(akalin): We may want to propagate this switch up 38 // TODO(akalin): We may want to propagate this switch up
39 // eventually. 39 // eventually.
40 #if defined(OS_ANDROID) || defined(OS_IOS) 40 #if defined(OS_ANDROID) || defined(OS_IOS)
41 static const bool kCreateMobileBookmarksFolder = true; 41 static const bool kCreateMobileBookmarksFolder = true;
42 #else 42 #else
43 static const bool kCreateMobileBookmarksFolder = false; 43 static const bool kCreateMobileBookmarksFolder = false;
44 #endif 44 #endif
45 45
46 Syncer::Syncer(syncer::CancelationSignal* cancelation_signal) 46 Syncer::Syncer(CancelationSignal* cancelation_signal)
47 : cancelation_signal_(cancelation_signal), is_syncing_(false) {} 47 : cancelation_signal_(cancelation_signal), is_syncing_(false) {}
48 48
49 Syncer::~Syncer() {} 49 Syncer::~Syncer() {}
50 50
51 bool Syncer::ExitRequested() { 51 bool Syncer::ExitRequested() {
52 return cancelation_signal_->IsSignalled(); 52 return cancelation_signal_->IsSignalled();
53 } 53 }
54 54
55 bool Syncer::IsSyncing() const { 55 bool Syncer::IsSyncing() const {
56 return is_syncing_; 56 return is_syncing_;
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 } 205 }
206 206
207 bool Syncer::PostClearServerData(SyncCycle* cycle) { 207 bool Syncer::PostClearServerData(SyncCycle* cycle) {
208 DCHECK(cycle); 208 DCHECK(cycle);
209 ClearServerData clear_server_data(cycle->context()->account_name()); 209 ClearServerData clear_server_data(cycle->context()->account_name());
210 const SyncerError post_result = clear_server_data.SendRequest(cycle); 210 const SyncerError post_result = clear_server_data.SendRequest(cycle);
211 return post_result == SYNCER_OK; 211 return post_result == SYNCER_OK;
212 } 212 }
213 213
214 } // namespace syncer 214 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698