| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/android/profiles/profile_downloader_android.h" | 5 #include "chrome/browser/android/profiles/profile_downloader_android.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "base/android/jni_android.h" | 9 #include "base/android/jni_android.h" |
| 8 #include "base/android/jni_string.h" | 10 #include "base/android/jni_string.h" |
| 11 #include "base/macros.h" |
| 9 #include "chrome/browser/browser_process.h" | 12 #include "chrome/browser/browser_process.h" |
| 10 #include "chrome/browser/profiles/profile_android.h" | 13 #include "chrome/browser/profiles/profile_android.h" |
| 11 #include "chrome/browser/profiles/profile_avatar_icon_util.h" | 14 #include "chrome/browser/profiles/profile_avatar_icon_util.h" |
| 12 #include "chrome/browser/profiles/profile_downloader.h" | 15 #include "chrome/browser/profiles/profile_downloader.h" |
| 13 #include "chrome/browser/profiles/profile_downloader_delegate.h" | 16 #include "chrome/browser/profiles/profile_downloader_delegate.h" |
| 14 #include "chrome/browser/profiles/profile_manager.h" | 17 #include "chrome/browser/profiles/profile_manager.h" |
| 15 #include "chrome/browser/signin/account_tracker_service_factory.h" | 18 #include "chrome/browser/signin/account_tracker_service_factory.h" |
| 16 #include "components/signin/core/browser/account_tracker_service.h" | 19 #include "components/signin/core/browser/account_tracker_service.h" |
| 17 #include "google_apis/gaia/gaia_auth_util.h" | 20 #include "google_apis/gaia/gaia_auth_util.h" |
| 18 #include "jni/ProfileDownloader_jni.h" | 21 #include "jni/ProfileDownloader_jni.h" |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 profile, | 197 profile, |
| 195 account_tracker_service->FindAccountInfoByEmail(email).account_id, email, | 198 account_tracker_service->FindAccountInfoByEmail(email).account_id, email, |
| 196 image_side_pixels, is_pre_signin); | 199 image_side_pixels, is_pre_signin); |
| 197 retriever->Start(); | 200 retriever->Start(); |
| 198 } | 201 } |
| 199 | 202 |
| 200 // static | 203 // static |
| 201 bool RegisterProfileDownloader(JNIEnv* env) { | 204 bool RegisterProfileDownloader(JNIEnv* env) { |
| 202 return RegisterNativesImpl(env); | 205 return RegisterNativesImpl(env); |
| 203 } | 206 } |
| OLD | NEW |