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/profiles/profile_downloader.h" | 5 #include "chrome/browser/profiles/profile_downloader.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/json/json_reader.h" | 10 #include "base/json/json_reader.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
13 #include "base/string_split.h" | |
14 #include "base/string_util.h" | 13 #include "base/string_util.h" |
15 #include "base/stringprintf.h" | 14 #include "base/stringprintf.h" |
| 15 #include "base/strings/string_split.h" |
16 #include "base/values.h" | 16 #include "base/values.h" |
17 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
18 #include "chrome/browser/profiles/profile_downloader_delegate.h" | 18 #include "chrome/browser/profiles/profile_downloader_delegate.h" |
19 #include "chrome/browser/signin/token_service.h" | 19 #include "chrome/browser/signin/token_service.h" |
20 #include "chrome/browser/signin/token_service_factory.h" | 20 #include "chrome/browser/signin/token_service_factory.h" |
21 #include "chrome/common/chrome_notification_types.h" | 21 #include "chrome/common/chrome_notification_types.h" |
22 #include "content/public/browser/browser_thread.h" | 22 #include "content/public/browser/browser_thread.h" |
23 #include "content/public/browser/notification_details.h" | 23 #include "content/public/browser/notification_details.h" |
24 #include "content/public/browser/notification_observer.h" | 24 #include "content/public/browser/notification_observer.h" |
25 #include "content/public/browser/notification_registrar.h" | 25 #include "content/public/browser/notification_registrar.h" |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 auth_token_ = access_token; | 395 auth_token_ = access_token; |
396 StartFetchingImage(); | 396 StartFetchingImage(); |
397 } | 397 } |
398 | 398 |
399 // Callback for OAuth2AccessTokenFetcher on failure. | 399 // Callback for OAuth2AccessTokenFetcher on failure. |
400 void ProfileDownloader::OnGetTokenFailure(const GoogleServiceAuthError& error) { | 400 void ProfileDownloader::OnGetTokenFailure(const GoogleServiceAuthError& error) { |
401 LOG(WARNING) << "ProfileDownloader: token request using refresh token failed"; | 401 LOG(WARNING) << "ProfileDownloader: token request using refresh token failed"; |
402 delegate_->OnProfileDownloadFailure( | 402 delegate_->OnProfileDownloadFailure( |
403 this, ProfileDownloaderDelegate::TOKEN_ERROR); | 403 this, ProfileDownloaderDelegate::TOKEN_ERROR); |
404 } | 404 } |
OLD | NEW |