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

Side by Side Diff: chrome/browser/autofill/android/personal_data_manager_android.cc

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/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 8
9 #include "base/android/jni_array.h" 9 #include "base/android/jni_array.h"
10 #include "base/android/jni_string.h" 10 #include "base/android/jni_string.h"
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/format_macros.h" 12 #include "base/format_macros.h"
13 #include "base/prefs/pref_service.h"
14 #include "base/strings/stringprintf.h" 13 #include "base/strings/stringprintf.h"
15 #include "base/strings/utf_string_conversions.h" 14 #include "base/strings/utf_string_conversions.h"
16 #include "chrome/browser/autofill/options_util.h" 15 #include "chrome/browser/autofill/options_util.h"
17 #include "chrome/browser/autofill/personal_data_manager_factory.h" 16 #include "chrome/browser/autofill/personal_data_manager_factory.h"
18 #include "chrome/browser/browser_process.h" 17 #include "chrome/browser/browser_process.h"
19 #include "chrome/browser/profiles/profile.h" 18 #include "chrome/browser/profiles/profile.h"
20 #include "chrome/browser/profiles/profile_manager.h" 19 #include "chrome/browser/profiles/profile_manager.h"
21 #include "chrome/common/pref_names.h" 20 #include "chrome/common/pref_names.h"
22 #include "components/autofill/core/browser/autofill_country.h" 21 #include "components/autofill/core/browser/autofill_country.h"
23 #include "components/autofill/core/browser/autofill_type.h" 22 #include "components/autofill/core/browser/autofill_type.h"
24 #include "components/autofill/core/browser/country_names.h" 23 #include "components/autofill/core/browser/country_names.h"
25 #include "components/autofill/core/browser/field_types.h" 24 #include "components/autofill/core/browser/field_types.h"
26 #include "components/autofill/core/browser/personal_data_manager.h" 25 #include "components/autofill/core/browser/personal_data_manager.h"
27 #include "components/autofill/core/common/autofill_pref_names.h" 26 #include "components/autofill/core/common/autofill_pref_names.h"
28 #include "components/autofill/core/common/autofill_switches.h" 27 #include "components/autofill/core/common/autofill_switches.h"
28 #include "components/prefs/pref_service.h"
29 #include "jni/PersonalDataManager_jni.h" 29 #include "jni/PersonalDataManager_jni.h"
30 30
31 using base::android::ConvertJavaStringToUTF8; 31 using base::android::ConvertJavaStringToUTF8;
32 using base::android::ConvertUTF16ToJavaString; 32 using base::android::ConvertUTF16ToJavaString;
33 using base::android::ConvertUTF8ToJavaString; 33 using base::android::ConvertUTF8ToJavaString;
34 using base::android::ScopedJavaLocalRef; 34 using base::android::ScopedJavaLocalRef;
35 35
36 namespace autofill { 36 namespace autofill {
37 namespace { 37 namespace {
38 38
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 base::android::ConvertJavaStringToUTF16(env, jcountry_name))); 355 base::android::ConvertJavaStringToUTF16(env, jcountry_name)));
356 } 356 }
357 357
358 static jlong Init(JNIEnv* env, const JavaParamRef<jobject>& obj) { 358 static jlong Init(JNIEnv* env, const JavaParamRef<jobject>& obj) {
359 PersonalDataManagerAndroid* personal_data_manager_android = 359 PersonalDataManagerAndroid* personal_data_manager_android =
360 new PersonalDataManagerAndroid(env, obj); 360 new PersonalDataManagerAndroid(env, obj);
361 return reinterpret_cast<intptr_t>(personal_data_manager_android); 361 return reinterpret_cast<intptr_t>(personal_data_manager_android);
362 } 362 }
363 363
364 } // namespace autofill 364 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/shortcuts_provider_unittest.cc ('k') | chrome/browser/autofill/risk_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698