summaryrefslogtreecommitdiffstats
path: root/ios/chrome/browser/google/google_url_tracker_client_impl.cc
blob: 4b29376d7e15236ba9df0217688a986ac202c68a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ios/chrome/browser/google/google_url_tracker_client_impl.h"

#include "base/logging.h"
#include "ios/chrome/browser/browser_state/chrome_browser_state.h"

GoogleURLTrackerClientImpl::GoogleURLTrackerClientImpl(
    ios::ChromeBrowserState* browser_state)
    : browser_state_(browser_state) {
  DCHECK(browser_state_);
}

GoogleURLTrackerClientImpl::~GoogleURLTrackerClientImpl() {
}

bool GoogleURLTrackerClientImpl::IsBackgroundNetworkingEnabled() {
  return true;
}

PrefService* GoogleURLTrackerClientImpl::GetPrefs() {
  return browser_state_->GetPrefs();
}

net::URLRequestContextGetter* GoogleURLTrackerClientImpl::GetRequestContext() {
  return browser_state_->GetRequestContext();
}