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

Issue 12282004: Added personal_data_manager android implementation for auto-populating auto-fill on android builds … (Closed)

Created:
7 years, 10 months ago by apiccion
Modified:
7 years, 9 months ago
CC:
chromium-reviews, Raman Kakilate, benquan, dhollowa+watch_chromium.org, ahutter, browser-components-watch_chromium.org, dbeam+watch-autofill_chromium.org, Dane Wallinga, dyu1, estade+watch_chromium.org, Albert Bodenhamer, erikwright+watch_chromium.org, Ilya Sherman, tfarina
Visibility:
Public.

Description

Added personal_data_manager android implementation for auto-populating auto-fill on android builds Enabled auxiliary autofill profile for Android builds. Fixed unit tests for android version for autofill. Disabled autofill address population until we can parse the info from the contacts. Added permissions READ_CONTACTS and READ_PROFILE to testshell. These permissions are required to read the user's contact information using the ContactsContract and ContactsContract.Profile API. TBR=thakis@chromium.org,joi@chromium.org BUG=173268 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=190842

Patch Set 1 #

Total comments: 77

Patch Set 2 : Android Autofill Populator #

Total comments: 22

Patch Set 3 : Rebased #

Total comments: 48

Patch Set 4 : Autofill nits #

Total comments: 128

Patch Set 5 : #

Patch Set 6 : Fixed assortment of nits #

Total comments: 114

Patch Set 7 : Fixed various nits. #

Total comments: 46

Patch Set 8 : Fixed nits. #

Patch Set 9 : Fixed Nits #

Total comments: 27

Patch Set 10 : Components Refactor + Nits #

Total comments: 16

Patch Set 11 : Autofill populator components refactor #

Total comments: 23

Patch Set 12 : Moved Test Code Back Into unit_tests #

Patch Set 13 : Nits #

Total comments: 4

Patch Set 14 : nits #

Patch Set 15 : Feature flag-guard #

Total comments: 1

Patch Set 16 : Replaced flag guard with run-time permission check. Removed testshell contacts+profile permissions. #

Patch Set 17 : Added OS==android guard to autofill_jni_headers dependcy in autofill.gypi #

Patch Set 18 : Added OS==android guard to autofill_jni_headers dependcy in autofill.gypi #

Patch Set 19 : Changed Java PersonalAutofillPopulator @CalledByNative methods from public to private. #

Patch Set 20 : Fixed autogenerated nits from trybot #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1157 lines, -12 lines) Patch
M chrome/browser/android/chrome_jni_registrar.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +3 lines, -0 lines 0 comments Download
M components/autofill.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +45 lines, -3 lines 0 comments Download
M components/autofill/DEPS View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
A components/autofill/browser/android/auxiliary_profile_loader_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +73 lines, -0 lines 0 comments Download
A components/autofill/browser/android/auxiliary_profile_loader_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +121 lines, -0 lines 0 comments Download
A components/autofill/browser/android/auxiliary_profile_unittest_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +159 lines, -0 lines 0 comments Download
A components/autofill/browser/android/auxiliary_profiles_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +52 lines, -0 lines 0 comments Download
A components/autofill/browser/android/auxiliary_profiles_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +115 lines, -0 lines 0 comments Download
A components/autofill/browser/android/component_jni_registrar.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +18 lines, -0 lines 0 comments Download
A components/autofill/browser/android/component_jni_registrar.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +23 lines, -0 lines 0 comments Download
A components/autofill/browser/android/java/src/org/chromium/components/browser/autofill/PersonalAutofillPopulator.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +317 lines, -0 lines 0 comments Download
A components/autofill/browser/android/personal_data_manager_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +21 lines, -0 lines 0 comments Download
A components/autofill/browser/android/test_auxiliary_profile_loader_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +70 lines, -0 lines 0 comments Download
A components/autofill/browser/android/test_auxiliary_profile_loader_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +125 lines, -0 lines 0 comments Download
M components/autofill/browser/autofill_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/browser/autofill_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4 lines, -3 lines 0 comments Download
M components/autofill/browser/personal_data_manager.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/browser/personal_data_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -3 lines 0 comments Download
M components/autofill/common/password_form_fill_data.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 48 (0 generated)
apiccion
PTAL
7 years, 10 months ago (2013-02-15 18:23:58 UTC) #1
tfarina
On Fri, Feb 15, 2013 at 4:23 PM, <apiccion@chromium.org> wrote: > Reviewers: dtrainor, aurimas, > ...
7 years, 10 months ago (2013-02-15 18:47:59 UTC) #2
aurimas (slooooooooow)
https://codereview.chromium.org/12282004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/autofill/PersonalAutofillPopulator.java File chrome/android/java/src/org/chromium/chrome/browser/autofill/PersonalAutofillPopulator.java (right): https://codereview.chromium.org/12282004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/autofill/PersonalAutofillPopulator.java#newcode1 chrome/android/java/src/org/chromium/chrome/browser/autofill/PersonalAutofillPopulator.java:1: // Copyright (c) 2012 The Chromium Authors. All rights ...
7 years, 10 months ago (2013-02-15 19:08:35 UTC) #3
aurimas (slooooooooow)
What is that "/autofill" file? Should it be included in the patch? Can you add ...
7 years, 10 months ago (2013-02-15 19:10:47 UTC) #4
aurimas (slooooooooow)
https://codereview.chromium.org/12282004/diff/1/chrome/browser/autofill/autofill_manager.cc File chrome/browser/autofill/autofill_manager.cc (right): https://codereview.chromium.org/12282004/diff/1/chrome/browser/autofill/autofill_manager.cc#newcode242 chrome/browser/autofill/autofill_manager.cc:242: PrefRegistrySyncable::SYNCABLE_PREF); Can you ask nyquist@ if we sync these ...
7 years, 10 months ago (2013-02-15 19:16:13 UTC) #5
tfarina
https://codereview.chromium.org/12282004/diff/1/base/basictypes.h File base/basictypes.h (left): https://codereview.chromium.org/12282004/diff/1/base/basictypes.h#oldcode78 base/basictypes.h:78: // NOTE: The usage of this macro was baned ...
7 years, 10 months ago (2013-02-15 19:21:00 UTC) #6
Ilya Sherman
https://codereview.chromium.org/12282004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/autofill/PersonalAutofillPopulator.java File chrome/android/java/src/org/chromium/chrome/browser/autofill/PersonalAutofillPopulator.java (right): https://codereview.chromium.org/12282004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/autofill/PersonalAutofillPopulator.java#newcode150 chrome/android/java/src/org/chromium/chrome/browser/autofill/PersonalAutofillPopulator.java:150: private String address; nit: Should this be mAddress? https://codereview.chromium.org/12282004/diff/1/chrome/browser/autofill/personal_data_manager.cc ...
7 years, 10 months ago (2013-02-16 04:14:36 UTC) #7
David Trainor- moved to gerrit
https://chromiumcodereview.appspot.com/12282004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/autofill/PersonalAutofillPopulator.java File chrome/android/java/src/org/chromium/chrome/browser/autofill/PersonalAutofillPopulator.java (right): https://chromiumcodereview.appspot.com/12282004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/autofill/PersonalAutofillPopulator.java#newcode82 chrome/android/java/src/org/chromium/chrome/browser/autofill/PersonalAutofillPopulator.java:82: public static final int STREET = 0; It looks ...
7 years, 10 months ago (2013-02-19 19:03:13 UTC) #8
nyquist
https://codereview.chromium.org/12282004/diff/1/chrome/browser/autofill/autofill_manager.cc File chrome/browser/autofill/autofill_manager.cc (right): https://codereview.chromium.org/12282004/diff/1/chrome/browser/autofill/autofill_manager.cc#newcode242 chrome/browser/autofill/autofill_manager.cc:242: PrefRegistrySyncable::SYNCABLE_PREF); On 2013/02/15 19:16:13, aurimas wrote: > Can you ...
7 years, 10 months ago (2013-02-19 19:34:22 UTC) #9
apiccion
https://codereview.chromium.org/12282004/diff/1/base/basictypes.h File base/basictypes.h (left): https://codereview.chromium.org/12282004/diff/1/base/basictypes.h#oldcode78 base/basictypes.h:78: // NOTE: The usage of this macro was baned ...
7 years, 10 months ago (2013-02-26 23:51:51 UTC) #10
aurimas (slooooooooow)
LGTM with a few nits. https://codereview.chromium.org/12282004/diff/13001/chrome/android/java/src/org/chromium/chrome/browser/autofill/PersonalAutofillPopulator.java File chrome/android/java/src/org/chromium/chrome/browser/autofill/PersonalAutofillPopulator.java (right): https://codereview.chromium.org/12282004/diff/13001/chrome/android/java/src/org/chromium/chrome/browser/autofill/PersonalAutofillPopulator.java#newcode26 chrome/android/java/src/org/chromium/chrome/browser/autofill/PersonalAutofillPopulator.java:26: import android.widget.Toast; Need a ...
7 years, 10 months ago (2013-02-27 01:56:00 UTC) #11
David Trainor- moved to gerrit
Looking good! Have a few more nits. Also look at the clang bot compile errors ...
7 years, 9 months ago (2013-02-27 07:49:28 UTC) #12
apiccion
https://chromiumcodereview.appspot.com/12282004/diff/13001/chrome/android/java/src/org/chromium/chrome/browser/autofill/PersonalAutofillPopulator.java File chrome/android/java/src/org/chromium/chrome/browser/autofill/PersonalAutofillPopulator.java (right): https://chromiumcodereview.appspot.com/12282004/diff/13001/chrome/android/java/src/org/chromium/chrome/browser/autofill/PersonalAutofillPopulator.java#newcode26 chrome/android/java/src/org/chromium/chrome/browser/autofill/PersonalAutofillPopulator.java:26: import android.widget.Toast; On 2013/02/27 01:56:00, aurimas wrote: > Need ...
7 years, 9 months ago (2013-02-28 01:31:04 UTC) #13
apiccion
7 years, 9 months ago (2013-02-28 20:32:13 UTC) #14
Yaron
https://codereview.chromium.org/12282004/diff/29001/chrome/android/java/src/org/chromium/chrome/browser/autofill/PersonalAutofillPopulator.java File chrome/android/java/src/org/chromium/chrome/browser/autofill/PersonalAutofillPopulator.java (right): https://codereview.chromium.org/12282004/diff/29001/chrome/android/java/src/org/chromium/chrome/browser/autofill/PersonalAutofillPopulator.java#newcode35 chrome/android/java/src/org/chromium/chrome/browser/autofill/PersonalAutofillPopulator.java:35: * Loads user profile information stored under the "Me" ...
7 years, 9 months ago (2013-02-28 20:40:43 UTC) #15
apiccion
+darin Can you check off the base/ and chrome/ files (both gypi). https://codereview.chromium.org/12282004/diff/29001/chrome/android/java/src/org/chromium/chrome/browser/autofill/PersonalAutofillPopulator.java File chrome/android/java/src/org/chromium/chrome/browser/autofill/PersonalAutofillPopulator.java ...
7 years, 9 months ago (2013-03-01 01:04:34 UTC) #16
Ilya Sherman
Please wait for less coarse OWNERS reviews prior to asking for .gypi reviews, since most ...
7 years, 9 months ago (2013-03-01 01:55:03 UTC) #17
apiccion
https://codereview.chromium.org/12282004/diff/29001/base/android/jni_local_ref_extensions.cc File base/android/jni_local_ref_extensions.cc (right): https://codereview.chromium.org/12282004/diff/29001/base/android/jni_local_ref_extensions.cc#newcode10 base/android/jni_local_ref_extensions.cc:10: string16 SafeJavaStringToUTF16(ScopedJavaLocalRef<jstring> jstring) { On 2013/03/01 01:55:04, Ilya Sherman ...
7 years, 9 months ago (2013-03-02 03:37:01 UTC) #18
Ilya Sherman
https://chromiumcodereview.appspot.com/12282004/diff/29001/base/android/jni_local_ref_extensions.h File base/android/jni_local_ref_extensions.h (right): https://chromiumcodereview.appspot.com/12282004/diff/29001/base/android/jni_local_ref_extensions.h#newcode15 base/android/jni_local_ref_extensions.h:15: std::vector<string16> SafeJavaStringArrayToStringVector( On 2013/03/02 03:37:01, apiccion wrote: > On ...
7 years, 9 months ago (2013-03-05 00:42:37 UTC) #19
apiccion
https://chromiumcodereview.appspot.com/12282004/diff/39002/base/android/jni_local_ref_extensions.cc File base/android/jni_local_ref_extensions.cc (right): https://chromiumcodereview.appspot.com/12282004/diff/39002/base/android/jni_local_ref_extensions.cc#newcode20 base/android/jni_local_ref_extensions.cc:20: std::vector<string16>* stringVector) { On 2013/03/05 00:42:38, Ilya Sherman wrote: ...
7 years, 9 months ago (2013-03-09 00:53:40 UTC) #20
Ilya Sherman
https://chromiumcodereview.appspot.com/12282004/diff/43001/chrome/browser/autofill/android/auxiliary_profile_loader_android.cc File chrome/browser/autofill/android/auxiliary_profile_loader_android.cc (right): https://chromiumcodereview.appspot.com/12282004/diff/43001/chrome/browser/autofill/android/auxiliary_profile_loader_android.cc#newcode5 chrome/browser/autofill/android/auxiliary_profile_loader_android.cc:5: // nit: Replaces lines 4 and 5 with a ...
7 years, 9 months ago (2013-03-09 01:42:58 UTC) #21
apiccion
https://codereview.chromium.org/12282004/diff/43001/chrome/browser/autofill/android/auxiliary_profile_loader_android.cc File chrome/browser/autofill/android/auxiliary_profile_loader_android.cc (right): https://codereview.chromium.org/12282004/diff/43001/chrome/browser/autofill/android/auxiliary_profile_loader_android.cc#newcode5 chrome/browser/autofill/android/auxiliary_profile_loader_android.cc:5: // On 2013/03/09 01:42:58, Ilya Sherman wrote: > nit: ...
7 years, 9 months ago (2013-03-09 03:43:17 UTC) #22
Ilya Sherman
Thanks. LGTM with a last few nits: https://codereview.chromium.org/12282004/diff/43005/base/android/jni_local_ref_extensions.cc File base/android/jni_local_ref_extensions.cc (right): https://codereview.chromium.org/12282004/diff/43005/base/android/jni_local_ref_extensions.cc#newcode1 base/android/jni_local_ref_extensions.cc:1: // Copyright ...
7 years, 9 months ago (2013-03-11 22:39:44 UTC) #23
apiccion
https://chromiumcodereview.appspot.com/12282004/diff/43005/base/android/jni_local_ref_extensions.cc File base/android/jni_local_ref_extensions.cc (right): https://chromiumcodereview.appspot.com/12282004/diff/43005/base/android/jni_local_ref_extensions.cc#newcode1 base/android/jni_local_ref_extensions.cc:1: // Copyright (c) 2013 The Chromium Authors. All rights ...
7 years, 9 months ago (2013-03-13 20:17:27 UTC) #24
Yaron
It looks like there's still a bit more to move over to the component. Namely ...
7 years, 9 months ago (2013-03-13 21:23:23 UTC) #25
apiccion
https://chromiumcodereview.appspot.com/12282004/diff/72001/base/android/jni_local_ref_extensions.h File base/android/jni_local_ref_extensions.h (right): https://chromiumcodereview.appspot.com/12282004/diff/72001/base/android/jni_local_ref_extensions.h#newcode17 base/android/jni_local_ref_extensions.h:17: string16 SafeJavaStringToUTF16(const ScopedJavaLocalRef<jstring>& jstring); On 2013/03/13 21:23:23, Yaron wrote: ...
7 years, 9 months ago (2013-03-15 00:59:13 UTC) #26
apiccion
7 years, 9 months ago (2013-03-15 20:45:50 UTC) #27
Yaron
Why was the test code moved back to unit_tests? I think with my suggestion it ...
7 years, 9 months ago (2013-03-16 00:15:30 UTC) #28
apiccion
@Yaron, The tests depend on autofill_profile.cc which is built in chrome_browser.gypi hence the dependency. https://codereview.chromium.org/12282004/diff/80001/chrome/chrome.gyp ...
7 years, 9 months ago (2013-03-18 19:30:36 UTC) #29
Yaron
native android bits lgtm https://codereview.chromium.org/12282004/diff/96001/components/autofill/browser/android/auxiliary_profiles_android.cc File components/autofill/browser/android/auxiliary_profiles_android.cc (right): https://codereview.chromium.org/12282004/diff/96001/components/autofill/browser/android/auxiliary_profiles_android.cc#newcode115 components/autofill/browser/android/auxiliary_profiles_android.cc:115: } // namespace nit: namespace ...
7 years, 9 months ago (2013-03-18 20:23:04 UTC) #30
apiccion
https://codereview.chromium.org/12282004/diff/96001/components/autofill/browser/android/auxiliary_profiles_android.cc File components/autofill/browser/android/auxiliary_profiles_android.cc (right): https://codereview.chromium.org/12282004/diff/96001/components/autofill/browser/android/auxiliary_profiles_android.cc#newcode115 components/autofill/browser/android/auxiliary_profiles_android.cc:115: } // namespace On 2013/03/18 20:23:05, Yaron wrote: > ...
7 years, 9 months ago (2013-03-18 22:02:58 UTC) #31
Yaron
So it occurs to me that give we're holding the feature launch for now, we ...
7 years, 9 months ago (2013-03-19 20:15:51 UTC) #32
apiccion
Done. Please have a look. On 2013/03/19 20:15:51, Yaron wrote: > So it occurs to ...
7 years, 9 months ago (2013-03-21 21:14:25 UTC) #33
Yaron
lgtm I think I was mistaken and this should be fine even with the duplicate ...
7 years, 9 months ago (2013-03-22 23:40:28 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/apiccion@chromium.org/12282004/124001
7 years, 9 months ago (2013-03-27 01:12:30 UTC) #35
commit-bot: I haz the power
Presubmit check for 12282004-124001 failed and returned exit status 1. INFO:root:Found 21 file(s). Running presubmit ...
7 years, 9 months ago (2013-03-27 01:12:47 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/apiccion@chromium.org/12282004/124001
7 years, 9 months ago (2013-03-27 01:25:51 UTC) #37
commit-bot: I haz the power
Presubmit check for 12282004-124001 failed and returned exit status 1. INFO:root:Found 21 file(s). Running presubmit ...
7 years, 9 months ago (2013-03-27 01:26:06 UTC) #38
apiccion
thakis: chrome/chrome.gyp joi: components/autofill.gypi
7 years, 9 months ago (2013-03-27 01:28:39 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/apiccion@chromium.org/12282004/124001
7 years, 9 months ago (2013-03-27 01:29:57 UTC) #40
Nico
chrome.gyp lgtm Please wrap your commit messages at 80 columns for people using `git log`. ...
7 years, 9 months ago (2013-03-27 01:31:20 UTC) #41
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) aura_unittests, browser_tests, compositor_unittests, content_browsertests, content_unittests, interactive_ui_tests, ...
7 years, 9 months ago (2013-03-27 01:52:51 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/apiccion@chromium.org/12282004/149001
7 years, 9 months ago (2013-03-27 03:18:51 UTC) #43
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 9 months ago (2013-03-27 03:49:41 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/apiccion@chromium.org/12282004/163001
7 years, 9 months ago (2013-03-27 03:58:22 UTC) #45
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 9 months ago (2013-03-27 04:28:22 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/apiccion@chromium.org/12282004/175001
7 years, 9 months ago (2013-03-27 04:30:34 UTC) #47
commit-bot: I haz the power
7 years, 9 months ago (2013-03-27 07:05:03 UTC) #48
Message was sent while issue was closed.
Change committed as 190842

Powered by Google App Engine
This is Rietveld 408576698