| 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/autofill/android/personal_data_manager_android.h" | 5 #include "chrome/browser/autofill/android/personal_data_manager_android.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <algorithm> | 8 #include <algorithm> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 #include "components/autofill/core/common/autofill_pref_names.h" | 36 #include "components/autofill/core/common/autofill_pref_names.h" |
| 37 #include "components/autofill/core/common/autofill_switches.h" | 37 #include "components/autofill/core/common/autofill_switches.h" |
| 38 #include "components/prefs/pref_service.h" | 38 #include "components/prefs/pref_service.h" |
| 39 #include "content/public/browser/web_contents.h" | 39 #include "content/public/browser/web_contents.h" |
| 40 #include "grit/components_scaled_resources.h" | 40 #include "grit/components_scaled_resources.h" |
| 41 #include "jni/PersonalDataManager_jni.h" | 41 #include "jni/PersonalDataManager_jni.h" |
| 42 | 42 |
| 43 using base::android::ConvertJavaStringToUTF8; | 43 using base::android::ConvertJavaStringToUTF8; |
| 44 using base::android::ConvertUTF16ToJavaString; | 44 using base::android::ConvertUTF16ToJavaString; |
| 45 using base::android::ConvertUTF8ToJavaString; | 45 using base::android::ConvertUTF8ToJavaString; |
| 46 using base::android::JavaParamRef; |
| 46 using base::android::ScopedJavaGlobalRef; | 47 using base::android::ScopedJavaGlobalRef; |
| 47 using base::android::ScopedJavaLocalRef; | 48 using base::android::ScopedJavaLocalRef; |
| 48 | 49 |
| 49 namespace autofill { | 50 namespace autofill { |
| 50 namespace { | 51 namespace { |
| 51 | 52 |
| 52 Profile* GetProfile() { | 53 Profile* GetProfile() { |
| 53 return ProfileManager::GetActiveUserProfile()->GetOriginalProfile(); | 54 return ProfileManager::GetActiveUserProfile()->GetOriginalProfile(); |
| 54 } | 55 } |
| 55 | 56 |
| (...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 735 base::android::ConvertJavaStringToUTF16(env, jcountry_name))); | 736 base::android::ConvertJavaStringToUTF16(env, jcountry_name))); |
| 736 } | 737 } |
| 737 | 738 |
| 738 static jlong Init(JNIEnv* env, const JavaParamRef<jobject>& obj) { | 739 static jlong Init(JNIEnv* env, const JavaParamRef<jobject>& obj) { |
| 739 PersonalDataManagerAndroid* personal_data_manager_android = | 740 PersonalDataManagerAndroid* personal_data_manager_android = |
| 740 new PersonalDataManagerAndroid(env, obj); | 741 new PersonalDataManagerAndroid(env, obj); |
| 741 return reinterpret_cast<intptr_t>(personal_data_manager_android); | 742 return reinterpret_cast<intptr_t>(personal_data_manager_android); |
| 742 } | 743 } |
| 743 | 744 |
| 744 } // namespace autofill | 745 } // namespace autofill |
| OLD | NEW |