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

Issue 181403006: Make TestingProfile auto-create incognito profiles. (Closed)

Created:
6 years, 9 months ago by dconnelly
Modified:
6 years, 9 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, rginda+watch_chromium.org, yoshiki+watch_chromium.org, tfarina, extensions-reviews_chromium.org, blundell, ananta
Visibility:
Public.

Description

Make 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -153 lines) Patch
M chrome/browser/extensions/api/cookies/cookies_unittest.cc View 1 1 chunk +2 lines, -5 lines 0 comments Download
M chrome/browser/extensions/event_router_forwarder_unittest.cc View 5 chunks +4 lines, -14 lines 0 comments Download
M chrome/browser/profiles/profile_manager_unittest.cc View 1 2 2 chunks +0 lines, -16 lines 0 comments Download
M chrome/browser/ui/bookmarks/bookmark_bubble_sign_in_delegate_unittest.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/browser/ui/browser_command_controller_unittest.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view_unittest.cc View 1 2 3 1 chunk +0 lines, -102 lines 0 comments Download
M chrome/test/base/testing_profile.cc View 1 2 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (0 generated)
dconnelly
6 years, 9 months ago (2014-03-04 22:59:38 UTC) #1
Andrew T Wilson (Slow)
LGTM if the tests all pass. I'm somewhat nervous about the ProfileManagerUnittest change, so if ...
6 years, 9 months ago (2014-03-04 23:37:28 UTC) #2
dconnelly1
All the unit tests pass on both linux_chromeos and linux. I'll add a knowledgeable reviewer, ...
6 years, 9 months ago (2014-03-05 19:09:43 UTC) #3
dconnelly
dpolukhin: please look at profile_manager_unittest.cc. The existing GuestProfileManager tests weren't making use of the fact ...
6 years, 9 months ago (2014-03-05 19:20:49 UTC) #4
Dmitry Polukhin
LGTM For this particular test I think it is fine to not check that the ...
6 years, 9 months ago (2014-03-05 19:29:07 UTC) #5
sky
LGTM
6 years, 9 months ago (2014-03-05 21:27:16 UTC) #6
dconnelly
The CQ bit was checked by dconnelly@chromium.org
6 years, 9 months ago (2014-03-05 21:44:22 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dconnelly@chromium.org/181403006/200001
6 years, 9 months ago (2014-03-05 21:47:53 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dconnelly@chromium.org/181403006/200001
6 years, 9 months ago (2014-03-06 00:02:35 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-06 00:49:25 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel
6 years, 9 months ago (2014-03-06 00:49:25 UTC) #11
dconnelly
The CQ bit was checked by dconnelly@chromium.org
6 years, 9 months ago (2014-03-06 00:56:48 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dconnelly@chromium.org/181403006/200001
6 years, 9 months ago (2014-03-06 00:58:37 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dconnelly@chromium.org/181403006/200001
6 years, 9 months ago (2014-03-06 02:53:44 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dconnelly@chromium.org/181403006/200001
6 years, 9 months ago (2014-03-06 03:18:15 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-06 04:01:31 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel
6 years, 9 months ago (2014-03-06 04:01:32 UTC) #17
dconnelly
The CQ bit was checked by dconnelly@chromium.org
6 years, 9 months ago (2014-03-06 14:28:49 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dconnelly@chromium.org/181403006/200001
6 years, 9 months ago (2014-03-06 14:29:15 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-06 17:14:28 UTC) #20
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=276371
6 years, 9 months ago (2014-03-06 17:14:28 UTC) #21
dconnelly
The CQ bit was checked by dconnelly@chromium.org
6 years, 9 months ago (2014-03-06 17:15:41 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dconnelly@chromium.org/181403006/200001
6 years, 9 months ago (2014-03-06 17:16:23 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-06 19:56:39 UTC) #24
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=276464
6 years, 9 months ago (2014-03-06 19:56:40 UTC) #25
dconnelly
FYI: after talking to ananta@, I'm removing a pre-Aura Windows unit test that was broken ...
6 years, 9 months ago (2014-03-06 21:33:05 UTC) #26
dconnelly
The CQ bit was checked by dconnelly@chromium.org
6 years, 9 months ago (2014-03-06 21:33:29 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dconnelly@chromium.org/181403006/220001
6 years, 9 months ago (2014-03-06 21:35:30 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dconnelly@chromium.org/181403006/220001
6 years, 9 months ago (2014-03-06 22:10:48 UTC) #29
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-06 22:46:12 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel
6 years, 9 months ago (2014-03-06 22:46:13 UTC) #31
dconnelly1
oh my god, how many times can gclient revert fail? On Thu, Mar 6, 2014 ...
6 years, 9 months ago (2014-03-06 23:13:02 UTC) #32
dconnelly
The CQ bit was checked by dconnelly@chromium.org
6 years, 9 months ago (2014-03-06 23:13:19 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dconnelly@chromium.org/181403006/220001
6 years, 9 months ago (2014-03-06 23:21:45 UTC) #34
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-07 06:04:28 UTC) #35
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) telemetry_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=233649
6 years, 9 months ago (2014-03-07 06:04:29 UTC) #36
dconnelly
6 years, 9 months ago (2014-03-07 17:16:33 UTC) #37
Message was sent while issue was closed.
Committed patchset #4 manually as r255647 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698