| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.chromoting; | 5 package org.chromium.chromoting; |
| 6 | 6 |
| 7 import android.accounts.Account; | 7 import android.accounts.Account; |
| 8 import android.accounts.AccountManager; | 8 import android.accounts.AccountManager; |
| 9 import android.accounts.AccountManagerCallback; | 9 import android.accounts.AccountManagerCallback; |
| 10 import android.accounts.AccountManagerFuture; | 10 import android.accounts.AccountManagerFuture; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 View.OnClickListener { | 50 View.OnClickListener { |
| 51 /** Only accounts of this type will be selectable for authentication. */ | 51 /** Only accounts of this type will be selectable for authentication. */ |
| 52 private static final String ACCOUNT_TYPE = "com.google"; | 52 private static final String ACCOUNT_TYPE = "com.google"; |
| 53 | 53 |
| 54 /** Scopes at which the authentication token we request will be valid. */ | 54 /** Scopes at which the authentication token we request will be valid. */ |
| 55 private static final String TOKEN_SCOPE = "oauth2:https://www.googleapis.com
/auth/chromoting " | 55 private static final String TOKEN_SCOPE = "oauth2:https://www.googleapis.com
/auth/chromoting " |
| 56 + "https://www.googleapis.com/auth/googletalk"; | 56 + "https://www.googleapis.com/auth/googletalk"; |
| 57 | 57 |
| 58 /** Web page to be displayed in the Help screen when launched from this acti
vity. */ | 58 /** Web page to be displayed in the Help screen when launched from this acti
vity. */ |
| 59 private static final String HELP_URL = | 59 private static final String HELP_URL = |
| 60 "http://support.google.com/chrome/?p=mobile_crd_hostslist"; | 60 "https://support.google.com/chrome/?p=mobile_crd_hostslist"; |
| 61 | 61 |
| 62 /** Web page to be displayed when user triggers the hyperlink for setting up
hosts. */ | 62 /** Web page to be displayed when user triggers the hyperlink for setting up
hosts. */ |
| 63 private static final String HOST_SETUP_URL = | 63 private static final String HOST_SETUP_URL = |
| 64 "https://support.google.com/chrome/answer/1649523"; | 64 "https://support.google.com/chrome/answer/1649523"; |
| 65 | 65 |
| 66 /** User's account details. */ | 66 /** User's account details. */ |
| 67 private Account mAccount; | 67 private Account mAccount; |
| 68 | 68 |
| 69 /** List of accounts on the system. */ | 69 /** List of accounts on the system. */ |
| 70 private Account[] mAccounts; | 70 private Account[] mAccounts; |
| (...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 540 // Unreachable, but required by Google Java style and findbugs. | 540 // Unreachable, but required by Google Java style and findbugs. |
| 541 assert false : "Unreached"; | 541 assert false : "Unreached"; |
| 542 } | 542 } |
| 543 | 543 |
| 544 if (dismissProgress && mProgressIndicator != null) { | 544 if (dismissProgress && mProgressIndicator != null) { |
| 545 mProgressIndicator.dismiss(); | 545 mProgressIndicator.dismiss(); |
| 546 mProgressIndicator = null; | 546 mProgressIndicator = null; |
| 547 } | 547 } |
| 548 } | 548 } |
| 549 } | 549 } |
| OLD | NEW |