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

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

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.h
diff --git a/chrome/browser/supervised_user/supervised_user_interstitial.h b/chrome/browser/supervised_user/supervised_user_interstitial.h
index 9bbd70d5aa10ed52b107015e731190adb75725a7..bf75f13217bfdac2b9f084afbee99c36054cf633 100644
--- a/chrome/browser/supervised_user/supervised_user_interstitial.h
+++ b/chrome/browser/supervised_user/supervised_user_interstitial.h
@@ -27,6 +27,9 @@ class Profile;
class SupervisedUserInterstitial : public content::InterstitialPageDelegate,
public SupervisedUserServiceObserver {
public:
+ // Interstitial type, used for testing.
+ static content::InterstitialPageDelegate::TypeID kTypeForTesting;
+
static void Show(content::WebContents* web_contents,
const GURL& url,
SupervisedUserURLFilter::FilteringBehaviorReason reason,
@@ -47,6 +50,7 @@ class SupervisedUserInterstitial : public content::InterstitialPageDelegate,
void CommandReceived(const std::string& command) override;
void OnProceed() override;
void OnDontProceed() override;
+ content::InterstitialPageDelegate::TypeID GetTypeForTesting() const override;
// SupervisedUserServiceObserver implementation.
void OnURLFilterChanged() override;
« no previous file with comments | « chrome/browser/ssl/ssl_browser_tests.cc ('k') | chrome/browser/supervised_user/supervised_user_interstitial.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698