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

Unified Diff: chrome/browser/ui/login/login_interstitial_delegate.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/ui/login/login_interstitial_delegate.cc
diff --git a/chrome/browser/ui/login/login_interstitial_delegate.cc b/chrome/browser/ui/login/login_interstitial_delegate.cc
index b4b8dfb73603b29875f008970ff1a631bd76a40a..bd487559a52b9b1eb6cdf8806476d17f18222f85 100644
--- a/chrome/browser/ui/login/login_interstitial_delegate.cc
+++ b/chrome/browser/ui/login/login_interstitial_delegate.cc
@@ -4,6 +4,10 @@
#include "chrome/browser/ui/login/login_interstitial_delegate.h"
+content::InterstitialPageDelegate::TypeID
+ LoginInterstitialDelegate::kTypeForTesting =
+ &LoginInterstitialDelegate::kTypeForTesting;
+
LoginInterstitialDelegate::LoginInterstitialDelegate(
content::WebContents* web_contents,
const GURL& request_url,
@@ -25,6 +29,11 @@ void LoginInterstitialDelegate::CommandReceived(const std::string& command) {
callback_.Run();
}
+content::InterstitialPageDelegate::TypeID
+LoginInterstitialDelegate::GetTypeForTesting() const {
+ return LoginInterstitialDelegate::kTypeForTesting;
+}
+
std::string LoginInterstitialDelegate::GetHTMLContents() {
// Showing an interstitial results in a new navigation, and a new navigation
// closes all modal dialogs on the page. Therefore the login prompt must be
« no previous file with comments | « chrome/browser/ui/login/login_interstitial_delegate.h ('k') | chrome/browser/ui/login/login_prompt_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698