| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #include "chrome/browser/chromeos/login/oauth2_token_fetcher.h" | 5 #include "chrome/browser/chromeos/login/oauth2_token_fetcher.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/string_util.h" | 8 #include "base/strings/string_util.h" |
| 9 #include "chrome/browser/chromeos/cros/cros_library.h" | 9 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 10 #include "chrome/browser/chromeos/net/connectivity_state_helper.h" | 10 #include "chrome/browser/chromeos/net/connectivity_state_helper.h" |
| 11 #include "content/public/browser/browser_thread.h" | 11 #include "content/public/browser/browser_thread.h" |
| 12 #include "google_apis/gaia/gaia_constants.h" | 12 #include "google_apis/gaia/gaia_constants.h" |
| 13 #include "google_apis/gaia/google_service_auth_error.h" | 13 #include "google_apis/gaia/google_service_auth_error.h" |
| 14 | 14 |
| 15 using content::BrowserThread; | 15 using content::BrowserThread; |
| 16 | 16 |
| 17 namespace { | 17 namespace { |
| 18 | 18 |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 base::TimeDelta::FromMilliseconds(kRequestRestartDelay)); | 114 base::TimeDelta::FromMilliseconds(kRequestRestartDelay)); |
| 115 return; | 115 return; |
| 116 } | 116 } |
| 117 LOG(ERROR) << "Unrecoverable error or retry count max reached. State: " | 117 LOG(ERROR) << "Unrecoverable error or retry count max reached. State: " |
| 118 << error.state() << ", network error: " << error.network_error() | 118 << error.state() << ", network error: " << error.network_error() |
| 119 << ", message: " << error.error_message(); | 119 << ", message: " << error.error_message(); |
| 120 error_handler.Run(); | 120 error_handler.Run(); |
| 121 } | 121 } |
| 122 | 122 |
| 123 } // namespace chromeos | 123 } // namespace chromeos |
| OLD | NEW |