summaryrefslogtreecommitdiffstats
path: root/remoting/webapp/main.html
diff options
context:
space:
mode:
authorjamiewalch@google.com <jamiewalch@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-20 01:16:04 +0000
committerjamiewalch@google.com <jamiewalch@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-20 01:16:04 +0000
commitcdf68094a5f12691d5cfc3e4135787e45a16795a (patch)
tree4d7d405ac945dc877765b9e8362fafe53ca0a6ae /remoting/webapp/main.html
parent6b1d22a7653dcd9b0b26206133b1afb3b8372f89 (diff)
downloadchromium_src-cdf68094a5f12691d5cfc3e4135787e45a16795a.zip
chromium_src-cdf68094a5f12691d5cfc3e4135787e45a16795a.tar.gz
chromium_src-cdf68094a5f12691d5cfc3e4135787e45a16795a.tar.bz2
This CL cleans up error handling when fetching the user's email address. We do this once per login, immediately after getting the OAuth2 refresh token, so failures should be rare, but we've had at least one report of problems, and the current failure mode is to tell the user that the service is unavailable. Specifically, this CL:
* Adds an onError callback so that the caller can be notified of exactly what went wrong. * Makes sure that a valid email address exists before allowing the user to interact with the app (the alternative is to make accessing the email address asynchronous everywhere, which gets messy very quickly). BUG=137713 TEST= Review URL: https://chromiumcodereview.appspot.com/10807026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147588 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/webapp/main.html')
-rw-r--r--remoting/webapp/main.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/remoting/webapp/main.html b/remoting/webapp/main.html
index a607812..9cb104c 100644
--- a/remoting/webapp/main.html
+++ b/remoting/webapp/main.html
@@ -86,7 +86,9 @@ found in the LICENSE file.
<div>
<p class="infographic-description"
i18n-content="IT2ME_FIRST_RUN"></p>
- <button id="get-started-it2me" i18n-content="GET_STARTED"></button>
+ <button id="get-started-it2me"
+ i18n-content="GET_STARTED"
+ disabled></button>
</div>
<div class="infographic">
<img src="infographic_remote_assistance.png">
@@ -132,7 +134,9 @@ found in the LICENSE file.
<div>
<p class="infographic-description"
i18n-content="ME2ME_FIRST_RUN"></p>
- <button id="get-started-me2me" i18n-content="GET_STARTED"></button>
+ <button id="get-started-me2me"
+ i18n-content="GET_STARTED"
+ disabled></button>
</div>
<div class="infographic">
<img src="infographic_my_computers.png">