summaryrefslogtreecommitdiffstats
path: root/google_apis
Commit message (Collapse)AuthorAgeFilesLines
* Automatically retry the following URLFetchers when the network changes:joaodasilva@chromium.org2012-12-141-0/+7
| | | | | | | | | | | | | | | | extensions_downloader.cc (extensions, retail mode AppPack) gaia_oauth_fetcher.cc gaia_oauth_client.cc device_management_service.cc (user/device policy fetches, auto-enrollment) All of these have been noticed to fail when network change notifications are sent, in particular on ChromeOS. TBR=jochen BUG=145021,163710,130602,chromium-os:16114 Review URL: https://codereview.chromium.org/11572044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173232 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce ERR_NETWORK_CHANGED and allow URLFetcher to automatically retry on ↵joaodasilva@chromium.org2012-12-141-4/+4
| | | | | | | | | | that error. BUG=164363 Review URL: https://codereview.chromium.org/11464028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173227 0039d316-1c4b-4281-b951-d872f2087c98
* Make OAuthUserInfoUrl configurable.rmsousa@chromium.org2012-11-133-1/+9
| | | | | | | | | BUG=97126 Review URL: https://chromiumcodereview.appspot.com/11367014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167445 0039d316-1c4b-4281-b951-d872f2087c98
* When using the one-click sign in feature, re-use the oauth2 refesh tokenrogerta@chromium.org2012-10-301-0/+3
| | | | | | | | | | | | | | | | retrieved by the sign in manager instead of having the token service create a new one. BUG=156964 TEST=Use the one-click sign in feature and make sure it works correctly. Try with gmail.com account and with dasher account. Try with accounts that have 2-factor enabled and disabled. There are no user visible changes from this CL. Review URL: https://chromiumcodereview.appspot.com/11290002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164945 0039d316-1c4b-4281-b951-d872f2087c98
* Fix GaiaOAuthClient to handle the case when it's destroyed from callbacks.sergeyu@chromium.org2012-10-261-3/+5
| | | | | | | | | | | | Previously GaiaOAuthClient was accessing its members after calling the delegate, so it was crashing if the delegate destroys GaiaOAuthClient object. Second problem this change solves is that it was not possible to call GetUserInfo() from OnRefreshTokenResponse(). Review URL: https://chromiumcodereview.appspot.com/11271038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164396 0039d316-1c4b-4281-b951-d872f2087c98
* Add GetUserInfo() in GaiaOAuthClient.sergeyu@chromium.org2012-10-253-21/+123
| | | | | | | | | The new method allows getting email of the user given an access token. Review URL: https://chromiumcodereview.appspot.com/11226067 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164003 0039d316-1c4b-4281-b951-d872f2087c98
* Remove all the "set noparent" directivesdpranke@chromium.org2012-10-191-2/+0
| | | | | | | | | | | | | Now that OWNERS supports per-file owners, we can limit the scope of the top-level wildcard to just DEPS, and make darin and ben owners for everything else and remove the broad use of "set noparent". R=ben@chromium.org, darin@chromium.org BUG=88315 Review URL: https://codereview.chromium.org/11191038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163069 0039d316-1c4b-4281-b951-d872f2087c98
* No need to support old style dasher domains.rogerta@chromium.org2012-10-162-5/+3
| | | | | | | | | | BUG=137118 TEST=See unit tests, not called in any code yet Review URL: https://chromiumcodereview.appspot.com/11185002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162184 0039d316-1c4b-4281-b951-d872f2087c98
* Add helper function to test that a given URL is a valid Gaia sign in URL.rogerta@chromium.org2012-10-113-0/+31
| | | | | | | | | | BUG=137118 TEST=See unit tests, not called in any code yet Review URL: https://chromiumcodereview.appspot.com/11091048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161282 0039d316-1c4b-4281-b951-d872f2087c98
* This fixes some really silly memory leaks, and eliminates an unusedgspencer@chromium.org2012-10-031-2/+2
| | | | | | | | | | | | constructor. TBR=nkostylev@chromium.org BUG=none TEST=compile Review URL: https://chromiumcodereview.appspot.com/11000061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159807 0039d316-1c4b-4281-b951-d872f2087c98
* Let GaiaOAuthClient::GetTokensFromAuthCode use any given redirect URL.simonmorris@chromium.org2012-10-023-1/+9
| | | | | | | | | BUG=153453 Review URL: https://chromiumcodereview.appspot.com/11038011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159736 0039d316-1c4b-4281-b951-d872f2087c98
* Cache the channel IDpetewil@chromium.org2012-10-012-0/+5
| | | | | | | | | | | | | | To prevent hitting rate limits on how fast we can access the server to get an auth token to get a channel Id, we cache the channel Id when we get one. Note that a channel Id is per profile, so we store them by profile login name. BUG=149733 Review URL: https://chromiumcodereview.appspot.com/10951022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159576 0039d316-1c4b-4281-b951-d872f2087c98
* Don't allow OAuth2MintTokenFlow to outlive profile.estade@chromium.org2012-10-012-21/+0
| | | | | | | | BUG=150911 Review URL: https://codereview.chromium.org/10966009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159502 0039d316-1c4b-4281-b951-d872f2087c98
* Log ChromeToMobile search and auth errors to UMA and INFO.msw@chromium.org2012-09-241-0/+3
| | | | | | | | | | | | | | | | | | Add more UMA and VLOG(0) to OnGetTokenFailure and HandleSearchResponse. (add supporting GoogleServiceAuthError::NUM_STATES enum value) (add supporting CTMService SEARCH_[SUCCESS|ERROR] enum values) (change existing LOG_IF(INFO, ...) to VLOG_IF(0, ...) in HandleSubmitResponse) ChromeToMobile.AuthError UMA histogram added here: https://chromereviews.googleplex.com/4964015 BUG=102709,120941 TEST=Additional UMA and INFO logging of any auth token generation errors. R=joi@chromium.org,sky@chromium.org Review URL: https://chromiumcodereview.appspot.com/10970055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158345 0039d316-1c4b-4281-b951-d872f2087c98
* Adding unit tests for google_api_keys functionality.joi@chromium.org2012-09-213-42/+381
| | | | | | | | | | TBR=ben@chromium.org BUG=145584 Review URL: https://chromiumcodereview.appspot.com/10941034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157972 0039d316-1c4b-4281-b951-d872f2087c98
* Remove API keys from source.jamiewalch@chromium.org2012-09-181-1/+1
| | | | | | | | | | | Also fixes a bug in google_api_keys that made it fail when used as a module. BUG= Review URL: https://chromiumcodereview.appspot.com/10939005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157405 0039d316-1c4b-4281-b951-d872f2087c98
* Add a preliminary Python API for retrieving Google API keys.joi@chromium.org2012-09-171-0/+92
| | | | | | | | | | | | | | | | This has nearly identical semantics to the C++ API for builds where the internal key file is available. For builds where that file is not available, it does not yet have the same semantics, since at the moment it does not have access to the gyp variables that would be required (this is a TODO item). Instead, it will simply try to find keys from environment variables, and if they are not found it will use 'dummytoken' as the default token for each key. BUG=145584 Review URL: https://codereview.chromium.org/10933138 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157247 0039d316-1c4b-4281-b951-d872f2087c98
* Check in temporary keys to aid transition.joi@chromium.org2012-09-171-17/+16
| | | | | | | | | TBR=odean@chromium.org BUG=145584 Review URL: https://codereview.chromium.org/10913298 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157145 0039d316-1c4b-4281-b951-d872f2087c98
* Auto-detect whether internal keys should be used.joi@chromium.org2012-09-172-7/+46
| | | | | | | | | | | | | Allow overriding to explicitly use or not use internal keys, regardless of what is auto-detected. Fix a bug in the implementation, where the default value was not being used for unset tokens. BUG=145584 Review URL: https://codereview.chromium.org/10933126 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157130 0039d316-1c4b-4281-b951-d872f2087c98
* Moved /GetOAuthToken GAIA request to accounts.google.com.zelidrag@chromium.org2012-09-133-40/+2
| | | | | | | | | | BUG=147347 TEST=ChromeOS login BVTs Review URL: https://chromiumcodereview.appspot.com/10910234 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156596 0039d316-1c4b-4281-b951-d872f2087c98
* include.gypi variables to specify API keys or use internal header for keys.joi@chromium.org2012-09-133-9/+100
| | | | | | | | BUG=145584 Review URL: https://codereview.chromium.org/10918196 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156538 0039d316-1c4b-4281-b951-d872f2087c98
* Add include of internal-only file for official builds.joi@chromium.org2012-09-111-39/+23
| | | | | | | | | | | | | | Remove unused function, and add a few log messages. While I'm updating to match the internal change, add the relevant directory to .gitignore. BUG=145584 Review URL: https://chromiumcodereview.appspot.com/10916238 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156132 0039d316-1c4b-4281-b951-d872f2087c98
* google_apis/gaia: Fix more clang warnings about missing virtual and OVERRIDE ↵tfarina@chromium.org2012-09-091-1/+1
| | | | | | | | | | | | annotations. BUG=115047 TBR=rogerta@chromium.org Review URL: https://chromiumcodereview.appspot.com/10907133 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155605 0039d316-1c4b-4281-b951-d872f2087c98
* Moving google_apis and GaiaClient to src/google_apis.joi@chromium.org2012-09-0752-0/+9505
TBR=mechanicalowners@chromium.org BUG=145584 Review URL: https://chromiumcodereview.appspot.com/10928017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155312 0039d316-1c4b-4281-b951-d872f2087c98