OLD | NEW |
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> |
| 8 #include <stdint.h> |
| 9 |
7 #include "base/android/jni_android.h" | 10 #include "base/android/jni_android.h" |
8 #include "base/android/jni_array.h" | 11 #include "base/android/jni_array.h" |
9 #include "base/android/jni_string.h" | 12 #include "base/android/jni_string.h" |
10 #include "base/bind.h" | 13 #include "base/bind.h" |
11 #include "base/i18n/time_formatting.h" | 14 #include "base/i18n/time_formatting.h" |
12 #include "base/json/json_writer.h" | 15 #include "base/json/json_writer.h" |
13 #include "base/logging.h" | 16 #include "base/logging.h" |
14 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
15 #include "base/prefs/pref_service.h" | 18 #include "base/prefs/pref_service.h" |
16 #include "base/strings/utf_string_conversions.h" | 19 #include "base/strings/utf_string_conversions.h" |
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
495 static jlong Init(JNIEnv* env, const JavaParamRef<jobject>& obj) { | 498 static jlong Init(JNIEnv* env, const JavaParamRef<jobject>& obj) { |
496 ProfileSyncServiceAndroid* profile_sync_service_android = | 499 ProfileSyncServiceAndroid* profile_sync_service_android = |
497 new ProfileSyncServiceAndroid(env, obj); | 500 new ProfileSyncServiceAndroid(env, obj); |
498 if (profile_sync_service_android->Init()) { | 501 if (profile_sync_service_android->Init()) { |
499 return reinterpret_cast<intptr_t>(profile_sync_service_android); | 502 return reinterpret_cast<intptr_t>(profile_sync_service_android); |
500 } else { | 503 } else { |
501 delete profile_sync_service_android; | 504 delete profile_sync_service_android; |
502 return 0; | 505 return 0; |
503 } | 506 } |
504 } | 507 } |
OLD | NEW |