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

Unified Diff: chrome/browser/resources/gaia_auth/success.js

Issue 10443024: Added chrome switch that lets tests override URL path, moved GAIA auth extension from CrOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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/resources/gaia_auth/success.js
diff --git a/chrome/browser/resources/gaia_auth/success.js b/chrome/browser/resources/gaia_auth/success.js
new file mode 100644
index 0000000000000000000000000000000000000000..f3a0efcdb4046e0895ce3de037714c0193006d13
--- /dev/null
+++ b/chrome/browser/resources/gaia_auth/success.js
@@ -0,0 +1,14 @@
+function load() {
csilv 2012/05/25 22:38:39 nit: add copyright header
zel 2012/05/25 23:33:53 Done.
+ console.log('### Authenticator success page loaded.');
+
+ var params = getUrlSearchParams(location.search);
+ var msg = {
+ 'method': 'confirmLogin',
+ 'attemptToken': params['attemptToken']
+ };
+ window.parent.postMessage(msg,
+ 'chrome-extension://mfffpogegjflfpflabcdkioaeobkgjik/main.html');
+}
+
+document.addEventListener('DOMContentLoaded', load);
+

Powered by Google App Engine
This is Rietveld 408576698