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

Side by Side Diff: components/sync/driver/fake_sync_service.cc

Issue 2374913002: [USS] Show USS counters in about:sync page (Closed)
Patch Set: remove unique_ptr and rebase 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/driver/fake_sync_service.h" 5 #include "components/sync/driver/fake_sync_service.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "components/sync/core/base_transaction.h" 9 #include "components/sync/core/base_transaction.h"
10 #include "components/sync/core/user_share.h" 10 #include "components/sync/core/user_share.h"
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 } 169 }
170 170
171 std::string FakeSyncService::GetBackendInitializationStateString() const { 171 std::string FakeSyncService::GetBackendInitializationStateString() const {
172 return std::string(); 172 return std::string();
173 } 173 }
174 174
175 syncer::SyncCycleSnapshot FakeSyncService::GetLastCycleSnapshot() const { 175 syncer::SyncCycleSnapshot FakeSyncService::GetLastCycleSnapshot() const {
176 return syncer::SyncCycleSnapshot(); 176 return syncer::SyncCycleSnapshot();
177 } 177 }
178 178
179 base::Value* FakeSyncService::GetTypeStatusMap() const { 179 base::Value* FakeSyncService::GetTypeStatusMap() {
180 return new base::ListValue(); 180 return new base::ListValue();
181 } 181 }
182 182
183 const GURL& FakeSyncService::sync_service_url() const { 183 const GURL& FakeSyncService::sync_service_url() const {
184 return sync_service_url_; 184 return sync_service_url_;
185 } 185 }
186 186
187 std::string FakeSyncService::unrecoverable_error_message() const { 187 std::string FakeSyncService::unrecoverable_error_message() const {
188 return unrecoverable_error_message_; 188 return unrecoverable_error_message_;
189 } 189 }
(...skipping 16 matching lines...) Expand all
206 syncer::TypeDebugInfoObserver* observer) {} 206 syncer::TypeDebugInfoObserver* observer) {}
207 207
208 base::WeakPtr<syncer::JsController> FakeSyncService::GetJsController() { 208 base::WeakPtr<syncer::JsController> FakeSyncService::GetJsController() {
209 return base::WeakPtr<syncer::JsController>(); 209 return base::WeakPtr<syncer::JsController>();
210 } 210 }
211 211
212 void FakeSyncService::GetAllNodes( 212 void FakeSyncService::GetAllNodes(
213 const base::Callback<void(std::unique_ptr<base::ListValue>)>& callback) {} 213 const base::Callback<void(std::unique_ptr<base::ListValue>)>& callback) {}
214 214
215 } // namespace sync_driver 215 } // namespace sync_driver
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698