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

Unified Diff: components/safe_browsing/base_blocking_page.cc

Issue 2898593002: WebView: choose loud vs. quiet interstitial (Closed)
Patch Set: Rebase, fix merge conflicts 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/safe_browsing/base_blocking_page.h ('k') | components/security_interstitials/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/safe_browsing/base_blocking_page.cc
diff --git a/components/safe_browsing/base_blocking_page.cc b/components/safe_browsing/base_blocking_page.cc
index eaddeb8d36124a4208e87384fa42995d82cc8a10..52852688178ca2a1516f7c446378d0bc99899776 100644
--- a/components/safe_browsing/base_blocking_page.cc
+++ b/components/safe_browsing/base_blocking_page.cc
@@ -55,6 +55,8 @@ BaseBlockingPage::BaseBlockingPage(
? -1
: web_contents->GetController().GetLastCommittedEntryIndex()),
unsafe_resources_(unsafe_resources),
+ proceeded_(false),
+ threat_details_proceed_delay_ms_(kThreatDetailsProceedDelayMilliSeconds),
sb_error_ui_(base::MakeUnique<SafeBrowsingLoudErrorUI>(
unsafe_resources_[0].url,
main_frame_url_,
@@ -62,10 +64,7 @@ BaseBlockingPage::BaseBlockingPage(
display_options,
ui_manager->app_locale(),
base::Time::NowFromSystemTime(),
- controller())),
- proceeded_(false),
- threat_details_proceed_delay_ms_(kThreatDetailsProceedDelayMilliSeconds) {
-}
+ controller())) {}
BaseBlockingPage::~BaseBlockingPage() {}
@@ -351,4 +350,13 @@ BaseBlockingPage::CreateControllerClient(
ui_manager->app_locale(), ui_manager->default_safe_page());
}
+int BaseBlockingPage::GetHTMLTemplateId() {
+ return sb_error_ui_->GetHTMLTemplateId();
+}
+
+void BaseBlockingPage::set_sb_error_ui(
+ std::unique_ptr<BaseSafeBrowsingErrorUI> sb_error_ui) {
+ sb_error_ui_ = std::move(sb_error_ui);
+}
+
} // namespace safe_browsing
« no previous file with comments | « components/safe_browsing/base_blocking_page.h ('k') | components/security_interstitials/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698