OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/signin/mutable_profile_oauth2_token_service_delegate.h" | 5 #include "chrome/browser/signin/mutable_profile_oauth2_token_service_delegate.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 9 #include "base/macros.h" |
7 #include "base/profiler/scoped_tracker.h" | 10 #include "base/profiler/scoped_tracker.h" |
8 #include "components/signin/core/browser/signin_client.h" | 11 #include "components/signin/core/browser/signin_client.h" |
9 #include "components/signin/core/browser/signin_metrics.h" | 12 #include "components/signin/core/browser/signin_metrics.h" |
10 #include "components/signin/core/browser/webdata/token_web_data.h" | 13 #include "components/signin/core/browser/webdata/token_web_data.h" |
11 #include "components/signin/core/common/profile_management_switches.h" | 14 #include "components/signin/core/common/profile_management_switches.h" |
12 #include "components/webdata/common/web_data_service_base.h" | 15 #include "components/webdata/common/web_data_service_base.h" |
13 #include "google_apis/gaia/gaia_auth_fetcher.h" | 16 #include "google_apis/gaia/gaia_auth_fetcher.h" |
14 #include "google_apis/gaia/gaia_auth_util.h" | 17 #include "google_apis/gaia/gaia_auth_util.h" |
15 #include "google_apis/gaia/gaia_constants.h" | 18 #include "google_apis/gaia/gaia_constants.h" |
16 #include "google_apis/gaia/oauth2_access_token_fetcher_immediate_error.h" | 19 #include "google_apis/gaia/oauth2_access_token_fetcher_immediate_error.h" |
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
517 net::NetworkChangeNotifier::ConnectionType type) { | 520 net::NetworkChangeNotifier::ConnectionType type) { |
518 // If our network has changed, reset the backoff timer so that errors caused | 521 // If our network has changed, reset the backoff timer so that errors caused |
519 // by a previous lack of network connectivity don't prevent new requests. | 522 // by a previous lack of network connectivity don't prevent new requests. |
520 backoff_entry_.Reset(); | 523 backoff_entry_.Reset(); |
521 } | 524 } |
522 | 525 |
523 const net::BackoffEntry* | 526 const net::BackoffEntry* |
524 MutableProfileOAuth2TokenServiceDelegate::BackoffEntry() const { | 527 MutableProfileOAuth2TokenServiceDelegate::BackoffEntry() const { |
525 return &backoff_entry_; | 528 return &backoff_entry_; |
526 } | 529 } |
OLD | NEW |