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

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: Fix android build 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..c9d8ae086ef22f07b744e49564305982f68d970f 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,
@@ -114,6 +118,11 @@ void SupervisedUserInterstitial::Show(
// Otherwise |interstitial_page_| is responsible for deleting it.
}
+content::InterstitialPageDelegate::TypeID
+SupervisedUserInterstitial::GetTypeForTesting() const {
+ return SupervisedUserInterstitial::kTypeForTesting;
+}
+
SupervisedUserInterstitial::SupervisedUserInterstitial(
WebContents* web_contents,
const GURL& url,

Powered by Google App Engine
This is Rietveld 408576698