1 // Copyright 2014 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 "chrome/browser/google/chrome_google_url_tracker_client.h"
7 #include "base/command_line.h"
8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/common/chrome_switches.h"
11 ChromeGoogleURLTrackerClient::ChromeGoogleURLTrackerClient(Profile
* profile
)
15 ChromeGoogleURLTrackerClient::~ChromeGoogleURLTrackerClient() {
18 bool ChromeGoogleURLTrackerClient::IsBackgroundNetworkingEnabled() {
19 return !base::CommandLine::ForCurrentProcess()->HasSwitch(
20 switches::kDisableBackgroundNetworking
);
23 PrefService
* ChromeGoogleURLTrackerClient::GetPrefs() {
24 return profile_
->GetPrefs();
27 net::URLRequestContextGetter
*
28 ChromeGoogleURLTrackerClient::GetRequestContext() {
29 return profile_
->GetRequestContext();