Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Side by Side Diff: android_webview/browser/aw_safe_browsing_blocking_page.cc

Issue 2890703002: SafeBrowsing: allow WebView to customize the Help Center URL (Closed)
Patch Set: Rebase and fix compile errors, no logic change Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/safe_browsing_blocking_page.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/safe_browsing_blocking_page.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698