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

Unified Diff: chrome/browser/supervised_user/supervised_user_interstitial.cc

Issue 962413002: Add type for testing to interstitials. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bauerb comments Created 5 years, 10 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
Index: chrome/browser/supervised_user/supervised_user_interstitial.cc
diff --git a/chrome/browser/supervised_user/supervised_user_interstitial.cc b/chrome/browser/supervised_user/supervised_user_interstitial.cc
index 65798dc6028cf02d1800be33eee4cae5c1094fb0..402899958a9146f60548890de6beb00ff86f78d1 100644
--- a/chrome/browser/supervised_user/supervised_user_interstitial.cc
+++ b/chrome/browser/supervised_user/supervised_user_interstitial.cc
@@ -99,6 +99,10 @@ class TabCloser : public content::WebContentsUserData<TabCloser> {
DEFINE_WEB_CONTENTS_USER_DATA_KEY(TabCloser);
+content::InterstitialPageDelegate::TypeID
+ SupervisedUserInterstitial::kTypeForTesting =
+ &SupervisedUserInterstitial::kTypeForTesting;
+
// static
void SupervisedUserInterstitial::Show(
WebContents* web_contents,
@@ -350,6 +354,11 @@ void SupervisedUserInterstitial::OnDontProceed() {
DispatchContinueRequest(false);
}
+content::InterstitialPageDelegate::TypeID
+SupervisedUserInterstitial::GetTypeForTesting() const {
+ return SupervisedUserInterstitial::kTypeForTesting;
+}
+
void SupervisedUserInterstitial::OnURLFilterChanged() {
if (ShouldProceed())
interstitial_page_->Proceed();
« no previous file with comments | « chrome/browser/supervised_user/supervised_user_interstitial.h ('k') | chrome/browser/ui/login/login_interstitial_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698