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

Side by Side Diff: ios/chrome/browser/sync/fake_sync_service_factory.cc

Issue 1667733002: Move chrome_browser_state.{cc,h} to ios/chrome/browser/browser_state. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@test_support_ios
Patch Set: Created 4 years, 10 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 "ios/chrome/browser/sync/fake_sync_service_factory.h" 5 #include "ios/chrome/browser/sync/fake_sync_service_factory.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/memory/singleton.h" 8 #include "base/memory/singleton.h"
9 #include "components/keyed_service/core/keyed_service.h" 9 #include "components/keyed_service/core/keyed_service.h"
10 #include "components/keyed_service/ios/browser_state_dependency_manager.h" 10 #include "components/keyed_service/ios/browser_state_dependency_manager.h"
11 #include "components/sync_driver/fake_sync_service.h" 11 #include "components/sync_driver/fake_sync_service.h"
12 #include "ios/public/provider/chrome/browser/browser_state/chrome_browser_state. h" 12 #include "ios/chrome/browser/browser_state/chrome_browser_state.h"
13 13
14 namespace { 14 namespace {
15 15
16 class KeyedFakeSyncService : public KeyedService { 16 class KeyedFakeSyncService : public KeyedService {
17 public: 17 public:
18 KeyedFakeSyncService() {} 18 KeyedFakeSyncService() {}
19 19
20 sync_driver::FakeSyncService* fake_sync_service() { 20 sync_driver::FakeSyncService* fake_sync_service() {
21 return &fake_sync_service_; 21 return &fake_sync_service_;
22 } 22 }
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 BrowserStateDependencyManager::GetInstance()) {} 59 BrowserStateDependencyManager::GetInstance()) {}
60 60
61 FakeSyncServiceFactory::~FakeSyncServiceFactory() {} 61 FakeSyncServiceFactory::~FakeSyncServiceFactory() {}
62 62
63 scoped_ptr<KeyedService> FakeSyncServiceFactory::BuildServiceInstanceFor( 63 scoped_ptr<KeyedService> FakeSyncServiceFactory::BuildServiceInstanceFor(
64 web::BrowserState* context) const { 64 web::BrowserState* context) const {
65 return make_scoped_ptr(new KeyedFakeSyncService); 65 return make_scoped_ptr(new KeyedFakeSyncService);
66 } 66 }
67 67
68 } // namespace ios 68 } // namespace ios
OLDNEW
« no previous file with comments | « ios/chrome/browser/suggestions/suggestions_service_factory.mm ('k') | ios/chrome/browser/sync/glue/sync_start_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698