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

Side by Side Diff: chrome/browser/sync/profile_sync_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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/sync/profile_sync_service_android.h" 5 #include "chrome/browser/sync/profile_sync_service_android.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 28 matching lines...) Expand all
39 #include "google_apis/gaia/gaia_constants.h" 39 #include "google_apis/gaia/gaia_constants.h"
40 #include "google_apis/gaia/google_service_auth_error.h" 40 #include "google_apis/gaia/google_service_auth_error.h"
41 #include "grit/components_strings.h" 41 #include "grit/components_strings.h"
42 #include "jni/ProfileSyncService_jni.h" 42 #include "jni/ProfileSyncService_jni.h"
43 #include "ui/base/l10n/l10n_util.h" 43 #include "ui/base/l10n/l10n_util.h"
44 44
45 using base::android::AttachCurrentThread; 45 using base::android::AttachCurrentThread;
46 using base::android::CheckException; 46 using base::android::CheckException;
47 using base::android::ConvertJavaStringToUTF8; 47 using base::android::ConvertJavaStringToUTF8;
48 using base::android::ConvertUTF8ToJavaString; 48 using base::android::ConvertUTF8ToJavaString;
49 using base::android::JavaParamRef;
49 using base::android::ScopedJavaLocalRef; 50 using base::android::ScopedJavaLocalRef;
50 using content::BrowserThread; 51 using content::BrowserThread;
51 52
52 namespace { 53 namespace {
53 54
54 // Native callback for the JNI GetAllNodes method. When 55 // Native callback for the JNI GetAllNodes method. When
55 // ProfileSyncService::GetAllNodes completes, this method is called and the 56 // ProfileSyncService::GetAllNodes completes, this method is called and the
56 // results are sent to the Java callback. 57 // results are sent to the Java callback.
57 void NativeGetAllNodesCallback( 58 void NativeGetAllNodesCallback(
58 const base::android::ScopedJavaGlobalRef<jobject>& callback, 59 const base::android::ScopedJavaGlobalRef<jobject>& callback,
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 static jlong Init(JNIEnv* env, const JavaParamRef<jobject>& obj) { 506 static jlong Init(JNIEnv* env, const JavaParamRef<jobject>& obj) {
506 ProfileSyncServiceAndroid* profile_sync_service_android = 507 ProfileSyncServiceAndroid* profile_sync_service_android =
507 new ProfileSyncServiceAndroid(env, obj); 508 new ProfileSyncServiceAndroid(env, obj);
508 if (profile_sync_service_android->Init()) { 509 if (profile_sync_service_android->Init()) {
509 return reinterpret_cast<intptr_t>(profile_sync_service_android); 510 return reinterpret_cast<intptr_t>(profile_sync_service_android);
510 } else { 511 } else {
511 delete profile_sync_service_android; 512 delete profile_sync_service_android;
512 return 0; 513 return 0;
513 } 514 }
514 } 515 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698