From c1f445911d153d2e59b6c917295c202eda4cfb91 Mon Sep 17 00:00:00 2001 From: jamiewalch Date: Tue, 10 Feb 2015 09:49:16 -0800 Subject: [PATCH] Switch feedback consent dialog to use oauth2_api_impl. This was broken by https://codereview.chromium.org/840023004/ and was not caught because we don't auto-generate feedback_consent.html, nor do we run it through jscompile. BUG=457044 Review URL: https://codereview.chromium.org/907203002 Cr-Commit-Position: refs/heads/master@{#315586} --- remoting/webapp/app_remoting/html/feedback_consent.html | 2 +- remoting/webapp/app_remoting/js/feedback_consent.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/remoting/webapp/app_remoting/html/feedback_consent.html b/remoting/webapp/app_remoting/html/feedback_consent.html index 5cd53a07384e..adaf745f8d7e 100644 --- a/remoting/webapp/app_remoting/html/feedback_consent.html +++ b/remoting/webapp/app_remoting/html/feedback_consent.html @@ -15,7 +15,7 @@ found in the LICENSE file. - + diff --git a/remoting/webapp/app_remoting/js/feedback_consent.js b/remoting/webapp/app_remoting/js/feedback_consent.js index 7bc7d3d9a199..6691ed207f69 100644 --- a/remoting/webapp/app_remoting/js/feedback_consent.js +++ b/remoting/webapp/app_remoting/js/feedback_consent.js @@ -111,7 +111,8 @@ function generateId() { */ function onToken(token) { var getUserInfo = function() { - remoting.OAuth2Api.getUserInfo( + var oauth2Api = new remoting.OAuth2ApiImpl(); + oauth2Api.getUserInfo( onUserInfo, onUserInfo.bind(null, 'unknown', 'unknown'), token); }; if (!token) { -- 2.11.4.GIT