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

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

Issue 258123002: Implement a second version of the credentials passing API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: One more s/requested_version/requestedVersion/ I had missed. Thank you for catching this, browser_t… Created 6 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
« no previous file with comments | « chrome/browser/chromeos/login/saml/saml_browsertest.cc ('k') | chrome/browser/resources/gaia_auth/main.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/gaia_auth/background.js
diff --git a/chrome/browser/resources/gaia_auth/background.js b/chrome/browser/resources/gaia_auth/background.js
index 4de43a1f956806a951d9dca868c1d7bda9c241a8..1a3f7acb726272cec75a0d1c273187d2b1747619 100644
--- a/chrome/browser/resources/gaia_auth/background.js
+++ b/chrome/browser/resources/gaia_auth/background.js
@@ -163,6 +163,8 @@ BackgroundBridge.prototype = {
this.channelMain_.registerMessage(
'getScrapedPasswords',
this.onGetScrapedPasswords_.bind(this));
+ this.channelMain_.registerMessage(
+ 'apiResponse', this.onAPIResponse_.bind(this));
this.channelMain_.send({
'name': 'channelConnected'
@@ -341,6 +343,14 @@ BackgroundBridge.prototype = {
return Object.keys(passwords);
},
+ /**
+ * Handler for 'apiResponse' signal sent from the main script. Passes on the
+ * |msg| to the injected script.
+ */
+ onAPIResponse_: function(msg) {
+ this.channelInjected_.send(msg);
+ },
+
onAPICall_: function(msg) {
this.channelMain_.send(msg);
},
« no previous file with comments | « chrome/browser/chromeos/login/saml/saml_browsertest.cc ('k') | chrome/browser/resources/gaia_auth/main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698