forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Autofill] Add a notion of "verified" profiles.
Each Autofill profile and credit card is now associated with an origin. For automatically aggregated profiles, this is the domain they were aggregated from. For manually entered profiles, this is something more like "chrome://settings/autofill". Profiles with unknown origin have an empty string as their origin. A profile is considered to be "verified" if its origin is a non-empty, non-web-URL string. When a user makes an edit to a profile via chrome://settings/autofill, it becomes verified. (If the user simply views the profile, but does not make any changes, it is not upgraded to verified status.) Once a profile is in the verified state, nothing can knock it back into the unverified state. The only way to add variants to a verified profile is to enter them directly via Chrome's settings UI. Any automatically aggregated profiles that would be merged to a verified profile are simply discarded, since we don't want to mess up profiles that users have directly edited, nor do we want to pollute the global namespace of profiles. We could instead keep track of verified/unverified state per variant, but this adds a relatively large amount of code complexity for relatively little gain. This CL is just the first part of the work. Follow-up CLs will: (1) Extend the WebDB to be origin-aware. (2) Extend Sync to be origin-aware (requires a Sync backend change). (3a) Write the origin to the WebDB. (3b) Ensure that web origins are cleared from the WebDB when users select to erase history. (4) Ensure that all clients of the PersonalDataManager are setting the origin correctly for any profiles they add. BUG=170401, 231029 TEST=TBD Review URL: https://chromiumcodereview.appspot.com/14427004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197653 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
isherman@chromium.org
committed
May 1, 2013
1 parent
a1a6636
commit 012b8f3
Showing
19 changed files
with
483 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.