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

Unified Diff: chrome/browser/ui/login/login_interstitial_delegate.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/ui/login/login_interstitial_delegate.h
diff --git a/chrome/browser/ui/login/login_interstitial_delegate.h b/chrome/browser/ui/login/login_interstitial_delegate.h
index b1f6537800f7f4dd61876d1c1e8fa7f69f5d4c6a..0ae6ffcd255747d28269de924f1fa6625a1060c4 100644
--- a/chrome/browser/ui/login/login_interstitial_delegate.h
+++ b/chrome/browser/ui/login/login_interstitial_delegate.h
@@ -26,6 +26,9 @@ class AuthChallengeInfo;
// omnibox show the correct url when the login prompt is visible.
class LoginInterstitialDelegate : public content::InterstitialPageDelegate {
public:
+ // Interstitial type, used in tests.
+ static content::InterstitialPageDelegate::TypeID kTypeForTesting;
+
LoginInterstitialDelegate(content::WebContents* web_contents,
const GURL& request_url,
base::Closure& callback);
@@ -34,6 +37,7 @@ class LoginInterstitialDelegate : public content::InterstitialPageDelegate {
// content::InterstitialPageDelegate:
void CommandReceived(const std::string& command) override;
+ content::InterstitialPageDelegate::TypeID GetTypeForTesting() const override;
protected:
std::string GetHTMLContents() override;
« no previous file with comments | « chrome/browser/supervised_user/supervised_user_interstitial.cc ('k') | chrome/browser/ui/login/login_interstitial_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698