OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "android_webview/browser/aw_safe_browsing_blocking_page.h" | 5 #include "android_webview/browser/aw_safe_browsing_blocking_page.h" |
6 | 6 |
7 #include "android_webview/browser/aw_safe_browsing_ui_manager.h" | 7 #include "android_webview/browser/aw_safe_browsing_ui_manager.h" |
8 #include "components/security_interstitials/content/security_interstitial_contro
ller_client.h" | 8 #include "components/security_interstitials/content/security_interstitial_contro
ller_client.h" |
9 #include "components/security_interstitials/content/unsafe_resource.h" | 9 #include "components/security_interstitials/content/unsafe_resource.h" |
10 #include "components/security_interstitials/core/base_safe_browsing_error_ui.h" | 10 #include "components/security_interstitials/core/base_safe_browsing_error_ui.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 unsafe_resource.GetNavigationEntryForResource(); | 53 unsafe_resource.GetNavigationEntryForResource(); |
54 const UnsafeResourceList unsafe_resources{unsafe_resource}; | 54 const UnsafeResourceList unsafe_resources{unsafe_resource}; |
55 BaseSafeBrowsingErrorUI::SBErrorDisplayOptions display_options = | 55 BaseSafeBrowsingErrorUI::SBErrorDisplayOptions display_options = |
56 BaseSafeBrowsingErrorUI::SBErrorDisplayOptions( | 56 BaseSafeBrowsingErrorUI::SBErrorDisplayOptions( |
57 IsMainPageLoadBlocked(unsafe_resources), | 57 IsMainPageLoadBlocked(unsafe_resources), |
58 false, // kSafeBrowsingExtendedReportingOptInAllowed | 58 false, // kSafeBrowsingExtendedReportingOptInAllowed |
59 false, // is_off_the_record | 59 false, // is_off_the_record |
60 false, // is_extended_reporting | 60 false, // is_extended_reporting |
61 false, // is_scout | 61 false, // is_scout |
62 false, // kSafeBrowsingProceedAnywayDisabled | 62 false, // kSafeBrowsingProceedAnywayDisabled |
63 true); // is_resource_cancellable | 63 true, // is_resource_cancellable |
| 64 "cpn_safe_browsing_wv"); // help_center_article_link |
64 AwSafeBrowsingBlockingPage* blocking_page = new AwSafeBrowsingBlockingPage( | 65 AwSafeBrowsingBlockingPage* blocking_page = new AwSafeBrowsingBlockingPage( |
65 ui_manager, web_contents, entry ? entry->GetURL() : GURL(), | 66 ui_manager, web_contents, entry ? entry->GetURL() : GURL(), |
66 unsafe_resources, | 67 unsafe_resources, |
67 CreateControllerClient(web_contents, unsafe_resources, ui_manager), | 68 CreateControllerClient(web_contents, unsafe_resources, ui_manager), |
68 display_options); | 69 display_options); |
69 blocking_page->Show(); | 70 blocking_page->Show(); |
70 } | 71 } |
71 } | 72 } |
72 | 73 |
73 } // namespace android_webview | 74 } // namespace android_webview |
OLD | NEW |