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

Side by Side Diff: chrome/browser/android/profiles/profile_downloader_android.cc

Issue 2209993003: Add missing using statements for JNI types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
OLDNEW
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> 7 #include <stddef.h>
8 8
9 #include "base/android/jni_android.h" 9 #include "base/android/jni_android.h"
10 #include "base/android/jni_string.h" 10 #include "base/android/jni_string.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "chrome/browser/browser_process.h" 12 #include "chrome/browser/browser_process.h"
13 #include "chrome/browser/profiles/profile_android.h" 13 #include "chrome/browser/profiles/profile_android.h"
14 #include "chrome/browser/profiles/profile_attributes_entry.h" 14 #include "chrome/browser/profiles/profile_attributes_entry.h"
15 #include "chrome/browser/profiles/profile_attributes_storage.h" 15 #include "chrome/browser/profiles/profile_attributes_storage.h"
16 #include "chrome/browser/profiles/profile_avatar_icon_util.h" 16 #include "chrome/browser/profiles/profile_avatar_icon_util.h"
17 #include "chrome/browser/profiles/profile_downloader.h" 17 #include "chrome/browser/profiles/profile_downloader.h"
18 #include "chrome/browser/profiles/profile_downloader_delegate.h" 18 #include "chrome/browser/profiles/profile_downloader_delegate.h"
19 #include "chrome/browser/profiles/profile_manager.h" 19 #include "chrome/browser/profiles/profile_manager.h"
20 #include "chrome/browser/signin/account_tracker_service_factory.h" 20 #include "chrome/browser/signin/account_tracker_service_factory.h"
21 #include "components/signin/core/browser/account_tracker_service.h" 21 #include "components/signin/core/browser/account_tracker_service.h"
22 #include "google_apis/gaia/gaia_auth_util.h" 22 #include "google_apis/gaia/gaia_auth_util.h"
23 #include "jni/ProfileDownloader_jni.h" 23 #include "jni/ProfileDownloader_jni.h"
24 #include "third_party/skia/include/core/SkBitmap.h" 24 #include "third_party/skia/include/core/SkBitmap.h"
25 #include "ui/gfx/android/java_bitmap.h" 25 #include "ui/gfx/android/java_bitmap.h"
26 #include "ui/gfx/image/image_skia.h" 26 #include "ui/gfx/image/image_skia.h"
27 27
28 using base::android::JavaParamRef;
29 using base::android::ScopedJavaLocalRef;
30
28 namespace { 31 namespace {
29 32
30 // An account fetcher callback. 33 // An account fetcher callback.
31 class AccountInfoRetriever : public ProfileDownloaderDelegate { 34 class AccountInfoRetriever : public ProfileDownloaderDelegate {
32 public: 35 public:
33 AccountInfoRetriever(Profile* profile, 36 AccountInfoRetriever(Profile* profile,
34 const std::string& account_id, 37 const std::string& account_id,
35 const std::string& email, 38 const std::string& email,
36 const int desired_image_side_pixels, 39 const int desired_image_side_pixels,
37 bool is_pre_signin) 40 bool is_pre_signin)
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 profile, 209 profile,
207 account_tracker_service->FindAccountInfoByEmail(email).account_id, email, 210 account_tracker_service->FindAccountInfoByEmail(email).account_id, email,
208 image_side_pixels, is_pre_signin); 211 image_side_pixels, is_pre_signin);
209 retriever->Start(); 212 retriever->Start();
210 } 213 }
211 214
212 // static 215 // static
213 bool RegisterProfileDownloader(JNIEnv* env) { 216 bool RegisterProfileDownloader(JNIEnv* env) {
214 return RegisterNativesImpl(env); 217 return RegisterNativesImpl(env);
215 } 218 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698