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
3 // found in the LICENSE file.
5 #include "ios/chrome/browser/google/google_url_tracker_client_impl.h"
7 #include "base/logging.h"
8 #include "ios/public/provider/chrome/browser/browser_state/chrome_browser_state.h"
10 GoogleURLTrackerClientImpl::GoogleURLTrackerClientImpl(
11 ios::ChromeBrowserState
* browser_state
)
12 : browser_state_(browser_state
) {
13 DCHECK(browser_state_
);
16 GoogleURLTrackerClientImpl::~GoogleURLTrackerClientImpl() {
19 bool GoogleURLTrackerClientImpl::IsBackgroundNetworkingEnabled() {
23 PrefService
* GoogleURLTrackerClientImpl::GetPrefs() {
24 return browser_state_
->GetPrefs();
27 net::URLRequestContextGetter
* GoogleURLTrackerClientImpl::GetRequestContext() {
28 return browser_state_
->GetRequestContext();