OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/interstitials/chrome_controller_client.h" | 5 #include "chrome/browser/interstitials/chrome_controller_client.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
10 #include "base/process/launch.h" | 10 #include "base/process/launch.h" |
11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
12 #include "chrome/browser/browser_process.h" | 12 #include "chrome/browser/browser_process.h" |
13 #include "chrome/browser/interstitials/chrome_metrics_helper.h" | 13 #include "chrome/browser/interstitials/chrome_metrics_helper.h" |
14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
15 #include "chrome/common/pref_names.h" | 15 #include "chrome/common/pref_names.h" |
16 #include "components/prefs/pref_service.h" | 16 #include "components/prefs/pref_service.h" |
| 17 #include "components/safe_browsing_db/safe_browsing_prefs.h" |
17 #include "content/public/browser/browser_thread.h" | 18 #include "content/public/browser/browser_thread.h" |
18 #include "content/public/browser/interstitial_page.h" | 19 #include "content/public/browser/interstitial_page.h" |
19 #include "content/public/browser/web_contents.h" | 20 #include "content/public/browser/web_contents.h" |
20 #include "content/public/common/referrer.h" | 21 #include "content/public/common/referrer.h" |
21 | 22 |
22 #if defined(OS_ANDROID) | 23 #if defined(OS_ANDROID) |
23 #include "chrome/browser/android/intent_helper.h" | 24 #include "chrome/browser/android/intent_helper.h" |
24 #endif | 25 #endif |
25 | 26 |
26 #if defined(OS_CHROMEOS) | 27 #if defined(OS_CHROMEOS) |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 return g_browser_process->GetApplicationLocale(); | 179 return g_browser_process->GetApplicationLocale(); |
179 } | 180 } |
180 | 181 |
181 PrefService* ChromeControllerClient::GetPrefService() { | 182 PrefService* ChromeControllerClient::GetPrefService() { |
182 Profile* profile = | 183 Profile* profile = |
183 Profile::FromBrowserContext(web_contents_->GetBrowserContext()); | 184 Profile::FromBrowserContext(web_contents_->GetBrowserContext()); |
184 return profile->GetPrefs(); | 185 return profile->GetPrefs(); |
185 } | 186 } |
186 | 187 |
187 const std::string ChromeControllerClient::GetExtendedReportingPrefName() { | 188 const std::string ChromeControllerClient::GetExtendedReportingPrefName() { |
188 return prefs::kSafeBrowsingExtendedReportingEnabled; | 189 return safe_browsing::GetExtendedReportingPrefName(); |
189 } | 190 } |
OLD | NEW |