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

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: 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.h
diff --git a/chrome/browser/supervised_user/supervised_user_interstitial.h b/chrome/browser/supervised_user/supervised_user_interstitial.h
index 9bbd70d5aa10ed52b107015e731190adb75725a7..34577f0580818927ba132daf3701341327f9aa8e 100644
--- a/chrome/browser/supervised_user/supervised_user_interstitial.h
+++ b/chrome/browser/supervised_user/supervised_user_interstitial.h
@@ -27,11 +27,17 @@ 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,
const base::Callback<void(bool)>& callback);
+ // content::InterstitialPageDelegate:
Bernhard Bauer 2015/03/03 09:56:00 Can you move this to the private section?
meacer 2015/03/03 18:33:05 Done.
+ content::InterstitialPageDelegate::TypeID GetTypeForTesting() const override;
+
private:
SupervisedUserInterstitial(
content::WebContents* web_contents,

Powered by Google App Engine
This is Rietveld 408576698