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

Issue 1097553002: [Mac] AppControllerMac updates the window when a Profile is deleted. (Closed)

Created:
5 years, 8 months ago by Mike Lerman
Modified:
5 years, 8 months ago
Reviewers:
Robert Sesek
CC:
chromium-reviews, rginda+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

AppControllerMac updates the window when a Profile is deleted. BUG=477392 TEST=(Mac only) Have at least two profiles. Open one of the profiles. navigate to generate browser history, verify it in the History Menu. Delete the profile; note that history should no longer show the deleted profile's history. Committed: https://crrev.com/ef6d33eabfb3d553153217a3b874dd6a0cfdf961 Cr-Commit-Position: refs/heads/master@{#326281}

Patch Set 1 #

Patch Set 2 : Really try to get this test working #

Patch Set 3 : Try and get the test working for just one profile #

Patch Set 4 : A different type of test. I call it 'working'. #

Total comments: 11

Patch Set 5 : Nits and don't wait for the backend. #

Total comments: 10

Patch Set 6 : Use EXPECT/ASSERT in tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -3 lines) Patch
M chrome/browser/app_controller_mac.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/app_controller_mac.mm View 1 2 3 4 2 chunks +11 lines, -2 lines 0 comments Download
M chrome/browser/app_controller_mac_browsertest.mm View 1 2 3 4 5 3 chunks +66 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_manager.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 17 (5 generated)
Mike Lerman
Hi Robert, I got a test working that correctly validates the change that I made. ...
5 years, 8 months ago (2015-04-21 01:24:40 UTC) #2
Robert Sesek
https://codereview.chromium.org/1097553002/diff/60001/chrome/browser/app_controller_mac.mm File chrome/browser/app_controller_mac.mm (right): https://codereview.chromium.org/1097553002/diff/60001/chrome/browser/app_controller_mac.mm#newcode897 chrome/browser/app_controller_mac.mm:897: // Force windowChangedToProfile to set the lastProfile_ and also ...
5 years, 8 months ago (2015-04-21 18:02:42 UTC) #3
Mike Lerman
Thanks Robert. https://codereview.chromium.org/1097553002/diff/60001/chrome/browser/app_controller_mac.mm File chrome/browser/app_controller_mac.mm (right): https://codereview.chromium.org/1097553002/diff/60001/chrome/browser/app_controller_mac.mm#newcode897 chrome/browser/app_controller_mac.mm:897: // Force windowChangedToProfile to set the lastProfile_ ...
5 years, 8 months ago (2015-04-21 19:33:17 UTC) #4
Robert Sesek
Sorry, should have noticed this first time around. Don't DCHECK in tests, use the expect ...
5 years, 8 months ago (2015-04-21 20:12:30 UTC) #5
Mike Lerman
Of course, you're right. Thanks for seeing that. s/DCHECK/EXPECT or ASSERT/g https://codereview.chromium.org/1097553002/diff/80001/chrome/browser/app_controller_mac_browsertest.mm File chrome/browser/app_controller_mac_browsertest.mm (right): ...
5 years, 8 months ago (2015-04-21 20:18:48 UTC) #7
Robert Sesek
LGTM
5 years, 8 months ago (2015-04-21 20:23:22 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1097553002/120001
5 years, 8 months ago (2015-04-21 20:52:55 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 8 months ago (2015-04-21 21:54:55 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1097553002/120001
5 years, 8 months ago (2015-04-22 13:08:29 UTC) #14
commit-bot: I haz the power
Committed patchset #6 (id:120001)
5 years, 8 months ago (2015-04-22 13:09:42 UTC) #15
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/ef6d33eabfb3d553153217a3b874dd6a0cfdf961 Cr-Commit-Position: refs/heads/master@{#326281}
5 years, 8 months ago (2015-04-22 13:10:38 UTC) #16
horo
5 years, 8 months ago (2015-04-23 01:46:11 UTC) #17
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:120001) has been created in
https://codereview.chromium.org/1072193012/ by horo@chromium.org.

The reason for reverting is: browser_tests failure

http://build.chromium.org/p/chromium.mac/builders/Mac10.8%20Tests/builds/1394...


.

Powered by Google App Engine
This is Rietveld 408576698