| OLD | NEW |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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/security_interstitial_page.h" | 5 #include "chrome/browser/interstitials/security_interstitial_page.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/i18n/rtl.h" | 9 #include "base/i18n/rtl.h" |
| 10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram_macros.h" |
| 11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
| 12 #include "base/values.h" | 12 #include "base/values.h" |
| 13 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.h" |
| 14 #include "chrome/browser/interstitials/chrome_controller_client.h" | 14 #include "chrome/browser/interstitials/chrome_controller_client.h" |
| 15 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
| 16 #include "chrome/common/pref_names.h" | 16 #include "chrome/common/pref_names.h" |
| 17 #include "components/grit/components_resources.h" | 17 #include "components/grit/components_resources.h" |
| 18 #include "components/prefs/pref_service.h" | 18 #include "components/prefs/pref_service.h" |
| 19 #include "components/security_interstitials/core/common_string_util.h" | 19 #include "components/security_interstitials/core/common_string_util.h" |
| 20 #include "components/security_interstitials/core/metrics_helper.h" | 20 #include "components/security_interstitials/core/metrics_helper.h" |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 | 101 |
| 102 security_interstitials::MetricsHelper* | 102 security_interstitials::MetricsHelper* |
| 103 SecurityInterstitialPage::metrics_helper() { | 103 SecurityInterstitialPage::metrics_helper() { |
| 104 return controller_->metrics_helper(); | 104 return controller_->metrics_helper(); |
| 105 } | 105 } |
| 106 | 106 |
| 107 void SecurityInterstitialPage::set_metrics_helper( | 107 void SecurityInterstitialPage::set_metrics_helper( |
| 108 std::unique_ptr<security_interstitials::MetricsHelper> metrics_helper) { | 108 std::unique_ptr<security_interstitials::MetricsHelper> metrics_helper) { |
| 109 controller_->set_metrics_helper(std::move(metrics_helper)); | 109 controller_->set_metrics_helper(std::move(metrics_helper)); |
| 110 } | 110 } |
| OLD | NEW |