Refactor WebsiteSettings to operate on a SecurityInfo
[chromium-blink-merge.git] / chrome / browser / google / chrome_google_url_tracker_client.cc
blob60b1e7b1b4ed691c207d9a8f8bd56d4fbb197616
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)
12 : 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();