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

Unified Diff: chrome/browser/ssl/captive_portal_blocking_page.h

Issue 887573002: Add Wi-Fi SSID to captive portal interstitial. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix formatting Created 5 years, 11 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/ssl/captive_portal_blocking_page.h
diff --git a/chrome/browser/ssl/captive_portal_blocking_page.h b/chrome/browser/ssl/captive_portal_blocking_page.h
index ecdf073c3284b2ab6ddb94b97b17818d52d9e206..5b484184519274ac8ec40d682706fc8a15c053f3 100644
--- a/chrome/browser/ssl/captive_portal_blocking_page.h
+++ b/chrome/browser/ssl/captive_portal_blocking_page.h
@@ -41,6 +41,10 @@ class CaptivePortalBlockingPage : public SecurityInterstitialPage {
is_wifi_connection_ = is_wifi_connection;
}
+ void SetWiFiSSIDForTesting(std::string wifi_ssid) {
felt 2015/01/29 22:59:57 const std::string& wifi_ssid ?
meacer 2015/01/29 23:53:29 Done.
+ wifi_ssid_ = wifi_ssid;
+ }
+
protected:
// SecurityInterstitialPage methods:
void PopulateInterstitialStrings(
@@ -55,6 +59,9 @@ class CaptivePortalBlockingPage : public SecurityInterstitialPage {
GURL login_url_;
// True if on a Wi-Fi connection.
bool is_wifi_connection_;
+ // SSID of the connected network if the connection is a Wi-Fi connection.
+ std::string wifi_ssid_;
+
base::Callback<void(bool)> callback_;
DISALLOW_COPY_AND_ASSIGN(CaptivePortalBlockingPage);

Powered by Google App Engine
This is Rietveld 408576698