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

Side by Side Diff: chrome/browser/net/gaia/gaia_oauth_fetcher.cc

Issue 10411025: Reverted 136345 - Ran into GAIA dosserver issues in prod for http://accounts.google.com. We are goi… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "chrome/browser/net/gaia/gaia_oauth_fetcher.h" 5 #include "chrome/browser/net/gaia/gaia_oauth_fetcher.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/json/json_reader.h" 11 #include "base/json/json_reader.h"
12 #include "base/string_split.h" 12 #include "base/string_split.h"
13 #include "base/string_util.h" 13 #include "base/string_util.h"
14 #include "chrome/browser/net/gaia/gaia_oauth_consumer.h" 14 #include "chrome/browser/net/gaia/gaia_oauth_consumer.h"
15 #include "chrome/browser/profiles/profile.h" 15 #include "chrome/browser/profiles/profile.h"
16 #include "chrome/browser/ui/browser.h" 16 #include "chrome/browser/ui/browser.h"
17 #include "chrome/browser/ui/browser_finder.h" 17 #include "chrome/browser/ui/browser_finder.h"
18 #include "chrome/browser/ui/tabs/tab_strip_model.h" 18 #include "chrome/browser/ui/tabs/tab_strip_model.h"
19 #include "chrome/common/chrome_notification_types.h" 19 #include "chrome/common/chrome_notification_types.h"
20 #include "chrome/common/net/gaia/gaia_auth_fetcher.h" 20 #include "chrome/common/net/gaia/gaia_auth_fetcher.h"
21 #include "chrome/common/net/gaia/gaia_constants.h" 21 #include "chrome/common/net/gaia/gaia_constants.h"
22 #include "chrome/common/net/gaia/gaia_urls.h" 22 #include "chrome/common/net/gaia/gaia_urls.h"
23 #include "chrome/common/net/gaia/google_service_auth_error.h" 23 #include "chrome/common/net/gaia/google_service_auth_error.h"
24 #include "chrome/common/net/gaia/oauth_request_signer.h" 24 #include "chrome/common/net/gaia/oauth_request_signer.h"
25 #include "chrome/common/net/url_util.h"
26 #include "content/public/browser/notification_details.h" 25 #include "content/public/browser/notification_details.h"
27 #include "content/public/browser/notification_source.h" 26 #include "content/public/browser/notification_source.h"
28 #include "content/public/common/referrer.h" 27 #include "content/public/common/referrer.h"
29 #include "content/public/common/url_fetcher.h" 28 #include "content/public/common/url_fetcher.h"
30 #include "grit/chromium_strings.h" 29 #include "grit/chromium_strings.h"
31 #include "net/base/load_flags.h" 30 #include "net/base/load_flags.h"
32 #include "net/http/http_status_code.h" 31 #include "net/http/http_status_code.h"
33 #include "net/url_request/url_request_context_getter.h" 32 #include "net/url_request/url_request_context_getter.h"
34 #include "net/url_request/url_request_status.h" 33 #include "net/url_request/url_request_status.h"
35 #include "ui/base/l10n/l10n_util.h" 34 #include "ui/base/l10n/l10n_util.h"
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 break; 707 break;
709 case OAUTH2_REVOKE_TOKEN: 708 case OAUTH2_REVOKE_TOKEN:
710 OnOAuthRevokeTokenFetched(data, status, response_code); 709 OnOAuthRevokeTokenFetched(data, status, response_code);
711 break; 710 break;
712 } 711 }
713 } 712 }
714 713
715 bool GaiaOAuthFetcher::ShouldAutoFetch(RequestType fetch_step) { 714 bool GaiaOAuthFetcher::ShouldAutoFetch(RequestType fetch_step) {
716 return fetch_step <= auto_fetch_limit_; 715 return fetch_step <= auto_fetch_limit_;
717 } 716 }
OLDNEW
« no previous file with comments | « chrome/browser/importer/importer_host.cc ('k') | chrome/browser/password_manager/login_database_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698