DescriptionMake TestingProfile auto-create incognito profiles.
Previously, tests that involved incognito profiles needed to manually
create them and add them to the parent profile before
GetOffTheRecordProfile was ever called. However, the documentation for
Profile explicitly states that the incognito profile will be created if
it doesn't already exist when GetOffTheRecordProfile is called. Further,
it was prohibitvely invasive to test code that creates a profile and
expects to be able to do something with its associated incognito
profile.
This commit also updates existing tests to remove unnecessary manual
incognito profile creation.
BUG=318803
R=atwilson@chromium.org, dpolukhin@chromium.org, sky@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255647
Patch Set 1 #Patch Set 2 : fix cookies unittest #Patch Set 3 : atwilson review comments #Patch Set 4 : remove broken and no-longer-applicable test #
Messages
Total messages: 37 (0 generated)
|