Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / ios / public / provider / chrome / browser / chrome_browser_provider.cc
blob9f109a6784abbd484162c95e53123224210b8c03
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h"
7 #include "base/logging.h"
9 namespace ios {
11 namespace {
12 ChromeBrowserProvider* g_chrome_browser_provider = nullptr;
13 } // namespace
15 void SetChromeBrowserProvider(ChromeBrowserProvider* provider) {
16 g_chrome_browser_provider = provider;
19 ChromeBrowserProvider* GetChromeBrowserProvider() {
20 return g_chrome_browser_provider;
23 ChromeBrowserProvider::~ChromeBrowserProvider() {
26 // A dummy implementation of ChromeBrowserProvider.
28 ChromeBrowserProvider::ChromeBrowserProvider() {
31 net::URLRequestContextGetter*
32 ChromeBrowserProvider::GetSystemURLRequestContext() {
33 return nullptr;
36 PrefService* ChromeBrowserProvider::GetLocalState() {
37 return nullptr;
40 void ChromeBrowserProvider::AssertBrowserContextKeyedFactoriesBuilt() {
43 void ChromeBrowserProvider::RegisterLocalState(PrefRegistrySimple* registry) {
46 void ChromeBrowserProvider::RegisterProfilePrefs(
47 user_prefs::PrefRegistrySyncable* registry) {
50 ProfileOAuth2TokenServiceIOSProvider*
51 ChromeBrowserProvider::GetProfileOAuth2TokenServiceIOSProvider() {
52 return nullptr;
55 UpdatableResourceProvider*
56 ChromeBrowserProvider::GetUpdatableResourceProvider() {
57 return nullptr;
60 ChromeBrowserStateManager*
61 ChromeBrowserProvider::GetChromeBrowserStateManager() {
62 return nullptr;
65 InfoBarViewPlaceholder ChromeBrowserProvider::CreateInfoBarView(
66 CGRect frame,
67 InfoBarViewDelegate* delegate) {
68 return nullptr;
71 ChromeIdentityService* ChromeBrowserProvider::GetChromeIdentityService() {
72 return nullptr;
75 StringProvider* ChromeBrowserProvider::GetStringProvider() {
76 return nullptr;
79 GeolocationUpdaterProvider*
80 ChromeBrowserProvider::GetGeolocationUpdaterProvider() {
81 return nullptr;
84 std::string ChromeBrowserProvider::GetDistributionBrandCode() {
85 return std::string();
88 const char* ChromeBrowserProvider::GetChromeUIScheme() {
89 return nullptr;
92 void ChromeBrowserProvider::SetUIViewAlphaWithAnimation(UIView* view,
93 float alpha) {
96 metrics::MetricsService* ChromeBrowserProvider::GetMetricsService() {
97 return nullptr;
100 autofill::CardUnmaskPromptView*
101 ChromeBrowserProvider::CreateCardUnmaskPromptView(
102 autofill::CardUnmaskPromptController* controller) {
103 return nullptr;
106 std::string ChromeBrowserProvider::GetRiskData() {
107 return std::string();
110 policy::BrowserPolicyConnector*
111 ChromeBrowserProvider::GetBrowserPolicyConnector() {
112 return nullptr;
115 rappor::RapporService* ChromeBrowserProvider::GetRapporService() {
116 return nullptr;
119 bool ChromeBrowserProvider::IsOffTheRecordSessionActive() {
120 return false;
123 } // namespace ios