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

Side by Side Diff: chrome/browser/android/signin/account_tracker_service_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 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/android/signin/account_tracker_service_android.h" 5 #include "chrome/browser/android/signin/account_tracker_service_android.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/android/jni_array.h" 9 #include "base/android/jni_array.h"
10 #include "chrome/browser/profiles/profile_manager.h" 10 #include "chrome/browser/profiles/profile_manager.h"
11 #include "chrome/browser/signin/account_tracker_service_factory.h" 11 #include "chrome/browser/signin/account_tracker_service_factory.h"
12 #include "components/signin/core/browser/account_tracker_service.h" 12 #include "components/signin/core/browser/account_tracker_service.h"
13 #include "jni/AccountTrackerService_jni.h" 13 #include "jni/AccountTrackerService_jni.h"
14 14
15 using base::android::JavaParamRef;
16
15 namespace signin { 17 namespace signin {
16 namespace android { 18 namespace android {
17 19
18 void SeedAccountsInfo(JNIEnv* env, 20 void SeedAccountsInfo(JNIEnv* env,
19 const JavaParamRef<jclass>& jcaller, 21 const JavaParamRef<jclass>& jcaller,
20 const JavaParamRef<jobjectArray>& gaiaIds, 22 const JavaParamRef<jobjectArray>& gaiaIds,
21 const JavaParamRef<jobjectArray>& accountNames) { 23 const JavaParamRef<jobjectArray>& accountNames) {
22 std::vector<std::string> gaia_ids; 24 std::vector<std::string> gaia_ids;
23 std::vector<std::string> account_names; 25 std::vector<std::string> account_names;
24 base::android::AppendJavaStringArrayToStringVector(env, gaiaIds, &gaia_ids); 26 base::android::AppendJavaStringArrayToStringVector(env, gaiaIds, &gaia_ids);
(...skipping 11 matching lines...) Expand all
36 account_tracker_service->SeedAccountInfo(gaia_ids[i], account_names[i]); 38 account_tracker_service->SeedAccountInfo(gaia_ids[i], account_names[i]);
37 } 39 }
38 } 40 }
39 41
40 bool RegisterAccountTrackerService(JNIEnv* env) { 42 bool RegisterAccountTrackerService(JNIEnv* env) {
41 return RegisterNativesImpl(env); 43 return RegisterNativesImpl(env);
42 } 44 }
43 45
44 } // namespace android 46 } // namespace android
45 } // namespace signin 47 } // namespace signin
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698