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

Side by Side Diff: components/browser_sync/test_profile_sync_service.cc

Issue 2345843003: [Sync] Merge //components/browser_sync into one directory. (Closed)
Patch Set: Address comment + rebase. Created 4 years, 3 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/browser_sync/test_profile_sync_service.h ('k') | components/browsing_data_ui/DEPS » ('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/browser_sync/browser/test_profile_sync_service.h" 5 #include "components/browser_sync/test_profile_sync_service.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 syncer::TestIdFactory* TestProfileSyncService::id_factory() { 9 syncer::TestIdFactory* TestProfileSyncService::id_factory() {
10 return &id_factory_; 10 return &id_factory_;
11 } 11 }
12 12
13 syncer::WeakHandle<syncer::JsEventHandler> 13 syncer::WeakHandle<syncer::JsEventHandler>
14 TestProfileSyncService::GetJsEventHandler() { 14 TestProfileSyncService::GetJsEventHandler() {
15 return syncer::WeakHandle<syncer::JsEventHandler>(); 15 return syncer::WeakHandle<syncer::JsEventHandler>();
16 } 16 }
17 17
18 TestProfileSyncService::TestProfileSyncService( 18 TestProfileSyncService::TestProfileSyncService(
19 ProfileSyncService::InitParams init_params) 19 ProfileSyncService::InitParams init_params)
20 : ProfileSyncService(std::move(init_params)) {} 20 : ProfileSyncService(std::move(init_params)) {}
21 21
22 TestProfileSyncService::~TestProfileSyncService() {} 22 TestProfileSyncService::~TestProfileSyncService() {}
23 23
24 void TestProfileSyncService::OnConfigureDone( 24 void TestProfileSyncService::OnConfigureDone(
25 const sync_driver::DataTypeManager::ConfigureResult& result) { 25 const sync_driver::DataTypeManager::ConfigureResult& result) {
26 ProfileSyncService::OnConfigureDone(result); 26 ProfileSyncService::OnConfigureDone(result);
27 base::MessageLoop::current()->QuitWhenIdle(); 27 base::MessageLoop::current()->QuitWhenIdle();
28 } 28 }
29 29
30 syncer::UserShare* TestProfileSyncService::GetUserShare() const { 30 syncer::UserShare* TestProfileSyncService::GetUserShare() const {
31 return backend_->GetUserShare(); 31 return backend_->GetUserShare();
32 } 32 }
OLDNEW
« no previous file with comments | « components/browser_sync/test_profile_sync_service.h ('k') | components/browsing_data_ui/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698