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

Side by Side Diff: ios/public/test/test_keyed_service_provider.cc

Issue 1466363002: Introduce IOSChromeProfileInvalidationProviderFactory (iOS) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « ios/public/test/test_keyed_service_provider.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/public/test/test_keyed_service_provider.h" 5 #include "ios/public/test/test_keyed_service_provider.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/singleton.h" 10 #include "base/memory/singleton.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 return FakeSyncServiceFactory::GetForBrowserState(browser_state); 90 return FakeSyncServiceFactory::GetForBrowserState(browser_state);
91 } 91 }
92 92
93 sync_driver::SyncService* 93 sync_driver::SyncService*
94 TestKeyedServiceProvider::GetSyncServiceForBrowserStateIfExists( 94 TestKeyedServiceProvider::GetSyncServiceForBrowserStateIfExists(
95 ChromeBrowserState* browser_state) { 95 ChromeBrowserState* browser_state) {
96 return FakeSyncServiceFactory::GetForBrowserStateIfExists(browser_state); 96 return FakeSyncServiceFactory::GetForBrowserStateIfExists(browser_state);
97 } 97 }
98 98
99 KeyedServiceBaseFactory* 99 KeyedServiceBaseFactory*
100 TestKeyedServiceProvider::GetProfileInvalidationProviderFactory() {
101 return MissingServiceKeyedServiceFactory::GetInstance();
102 }
103
104 invalidation::ProfileInvalidationProvider*
105 TestKeyedServiceProvider::GetProfileInvalidationProviderForBrowserState(
106 ios::ChromeBrowserState* browser_state) {
107 return nullptr;
108 }
109
110 KeyedServiceBaseFactory*
111 TestKeyedServiceProvider::GetDataReductionProxySettingsFactory() { 100 TestKeyedServiceProvider::GetDataReductionProxySettingsFactory() {
112 return MissingServiceKeyedServiceFactory::GetInstance(); 101 return MissingServiceKeyedServiceFactory::GetInstance();
113 } 102 }
114 103
115 data_reduction_proxy::DataReductionProxySettings* 104 data_reduction_proxy::DataReductionProxySettings*
116 TestKeyedServiceProvider::GetDataReductionProxySettingsForBrowserState( 105 TestKeyedServiceProvider::GetDataReductionProxySettingsForBrowserState(
117 ios::ChromeBrowserState* browser_state) { 106 ios::ChromeBrowserState* browser_state) {
118 return nullptr; 107 return nullptr;
119 } 108 }
120 109
121 } // namespace ios 110 } // namespace ios
OLDNEW
« no previous file with comments | « ios/public/test/test_keyed_service_provider.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698