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

Unified Diff: chrome/browser/resources/gaia_auth_host/saml_handler.js

Issue 1072643002: sign-in: Don't inject into none http/https page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/gaia_auth_host/saml_handler.js
diff --git a/chrome/browser/resources/gaia_auth_host/saml_handler.js b/chrome/browser/resources/gaia_auth_host/saml_handler.js
index 20418d62cadfe6c8aedc4ad4b66c55d7ead35603..b41fad8597fba418cf855a61c5566cebc8ad5e72 100644
--- a/chrome/browser/resources/gaia_auth_host/saml_handler.js
+++ b/chrome/browser/resources/gaia_auth_host/saml_handler.js
@@ -266,6 +266,12 @@ cr.define('cr.login', function() {
return;
}
+ // Skip for none http/https url.
+ if (e.url.indexOf('https://') != 0 &&
+ e.url.indexOf('http://') != 0) {
+ return;
+ }
+
this.isSamlPage_ = this.pendingIsSamlPage_;
this.injectJs_();
},
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698