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

Issue 1686433002: Remove DialogDelegate::OnClosed() which is redundant with (Closed)

Created:
4 years, 10 months ago by Evan Stade
Modified:
4 years, 10 months ago
CC:
chromium-reviews, tim+watch_chromium.org, sadrul, vabr+watchlistpasswordmanager_chromium.org, zea+watch_chromium.org, tfarina, maxbogue+watch_chromium.org, plaree+watch_chromium.org, oshima+watch_chromium.org, kalyank, gcasto+watchlist_chromium.org, davemoore+watch_chromium.org, mkwst+watchlist-passwords_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove DialogDelegate::OnClosed() which is redundant with WidgetDelegate::WindowClosing(). BUG=585312, 583330 TBR=avi@chromium.org Committed: https://crrev.com/6f69f42209045c9d0c8b6bfc44d83ca6eca70a74 Cr-Commit-Position: refs/heads/master@{#377057}

Patch Set 1 #

Patch Set 2 : fix a browsertest #

Patch Set 3 : fix another test #

Patch Set 4 : rebase #

Total comments: 17

Patch Set 5 : review #

Total comments: 1

Patch Set 6 : . #

Patch Set 7 : change less #

Total comments: 4

Patch Set 8 : msw nits #

Patch Set 9 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -130 lines) Patch
M ash/system/chromeos/session/logout_confirmation_dialog.h View 1 chunk +1 line, -2 lines 0 comments Download
M ash/system/chromeos/session/logout_confirmation_dialog.cc View 1 chunk +1 line, -5 lines 0 comments Download
M chrome/browser/chromeos/enrollment_dialog_view.cc View 3 chunks +11 lines, -12 lines 0 comments Download
M chrome/browser/ui/views/extensions/extension_install_dialog_view_browsertest.cc View 1 4 chunks +26 lines, -31 lines 0 comments Download
M chrome/browser/ui/views/first_run_dialog.h View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/views/first_run_dialog.cc View 1 2 3 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/passwords/account_chooser_dialog_view.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/passwords/account_chooser_dialog_view.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/passwords/auto_signin_first_run_dialog_view.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/passwords/auto_signin_first_run_dialog_view.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/passwords/password_dialog_view_browsertest.cc View 1 2 3 4 5 6 chunks +4 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/sync/profile_signin_confirmation_dialog_views.h View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/views/sync/profile_signin_confirmation_dialog_views.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M components/app_modal/views/javascript_app_modal_dialog_views.h View 1 chunk +1 line, -1 line 0 comments Download
M components/app_modal/views/javascript_app_modal_dialog_views.cc View 1 2 3 4 2 chunks +12 lines, -12 lines 0 comments Download
M ui/views/window/dialog_client_view.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -5 lines 0 comments Download
M ui/views/window/dialog_client_view.cc View 1 2 3 4 5 6 7 8 5 chunks +17 lines, -27 lines 0 comments Download
M ui/views/window/dialog_delegate.h View 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 69 (29 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1686433002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1686433002/1
4 years, 10 months ago (2016-02-09 02:04:06 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_ng/builds/47413) linux_chromium_gn_chromeos_rel on ...
4 years, 10 months ago (2016-02-09 02:22:13 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1686433002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1686433002/20001
4 years, 10 months ago (2016-02-09 18:18:01 UTC) #9
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/165804)
4 years, 10 months ago (2016-02-09 19:06:07 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1686433002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1686433002/40001
4 years, 10 months ago (2016-02-09 23:42:08 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/113937) win_chromium_rel_ng on ...
4 years, 10 months ago (2016-02-10 00:38:03 UTC) #15
Evan Stade
+msw could you review the overall change? +vasilii could you review the changes to passwords ...
4 years, 10 months ago (2016-02-11 04:32:16 UTC) #17
vasilii
https://codereview.chromium.org/1686433002/diff/60001/chrome/browser/ui/views/passwords/auto_signin_first_run_dialog_view.cc File chrome/browser/ui/views/passwords/auto_signin_first_run_dialog_view.cc (right): https://codereview.chromium.org/1686433002/diff/60001/chrome/browser/ui/views/passwords/auto_signin_first_run_dialog_view.cc#newcode107 chrome/browser/ui/views/passwords/auto_signin_first_run_dialog_view.cc:107: // This method is called twice. crbug.com/583330 Assuming that ...
4 years, 10 months ago (2016-02-11 10:37:48 UTC) #18
msw
https://codereview.chromium.org/1686433002/diff/60001/chrome/browser/ui/views/extensions/extension_install_dialog_view_browsertest.cc File chrome/browser/ui/views/extensions/extension_install_dialog_view_browsertest.cc (right): https://codereview.chromium.org/1686433002/diff/60001/chrome/browser/ui/views/extensions/extension_install_dialog_view_browsertest.cc#newcode166 chrome/browser/ui/views/extensions/extension_install_dialog_view_browsertest.cc:166: modal_dialog->Show(); I suppose it's potentially necessary to create the ...
4 years, 10 months ago (2016-02-11 18:08:59 UTC) #19
Evan Stade
+sky for dialog_client_view.cc https://codereview.chromium.org/1686433002/diff/60001/chrome/browser/ui/views/extensions/extension_install_dialog_view_browsertest.cc File chrome/browser/ui/views/extensions/extension_install_dialog_view_browsertest.cc (right): https://codereview.chromium.org/1686433002/diff/60001/chrome/browser/ui/views/extensions/extension_install_dialog_view_browsertest.cc#newcode166 chrome/browser/ui/views/extensions/extension_install_dialog_view_browsertest.cc:166: modal_dialog->Show(); On 2016/02/11 18:08:58, msw wrote: ...
4 years, 10 months ago (2016-02-11 20:02:11 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1686433002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1686433002/80001
4 years, 10 months ago (2016-02-11 20:03:54 UTC) #23
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/165531)
4 years, 10 months ago (2016-02-11 20:47:13 UTC) #25
sky
https://codereview.chromium.org/1686433002/diff/80001/ui/views/window/dialog_client_view.h File ui/views/window/dialog_client_view.h (left): https://codereview.chromium.org/1686433002/diff/80001/ui/views/window/dialog_client_view.h#oldcode113 ui/views/window/dialog_client_view.h:113: bool notified_delegate_; Why is this no longer necessary?
4 years, 10 months ago (2016-02-11 22:56:56 UTC) #26
vasilii
https://codereview.chromium.org/1686433002/diff/60001/chrome/browser/ui/views/passwords/password_dialog_view_browsertest.cc File chrome/browser/ui/views/passwords/password_dialog_view_browsertest.cc (left): https://codereview.chromium.org/1686433002/diff/60001/chrome/browser/ui/views/passwords/password_dialog_view_browsertest.cc#oldcode295 chrome/browser/ui/views/passwords/password_dialog_view_browsertest.cc:295: EXPECT_CALL(*controller(), OnDialogClosed()); On 2016/02/11 20:02:11, Evan Stade wrote: > ...
4 years, 10 months ago (2016-02-12 12:57:09 UTC) #27
Evan Stade
On 2016/02/12 12:57:09, vasilii wrote: > Please don't change the production code. > The method ...
4 years, 10 months ago (2016-02-12 18:41:15 UTC) #28
vasilii
On 2016/02/12 18:41:15, Evan Stade (ooo) wrote: > On 2016/02/12 12:57:09, vasilii wrote: > > ...
4 years, 10 months ago (2016-02-15 10:36:46 UTC) #29
Evan Stade
On 2016/02/15 10:36:46, vasilii wrote: > On 2016/02/12 18:41:15, Evan Stade (ooo) wrote: > > ...
4 years, 10 months ago (2016-02-16 18:33:30 UTC) #30
vasilii
On 2016/02/16 18:33:30, Evan Stade (ooo) wrote: > On 2016/02/15 10:36:46, vasilii wrote: > > ...
4 years, 10 months ago (2016-02-17 09:31:49 UTC) #31
Evan Stade
sky: turns out notified_delegate_ is required after all, even though there's no DialogDelegate::OnClosing any more. ...
4 years, 10 months ago (2016-02-18 01:26:50 UTC) #32
vasilii
lgtm chrome/browser/ui/views/passwords/
4 years, 10 months ago (2016-02-18 09:46:39 UTC) #33
sky
LGTM
4 years, 10 months ago (2016-02-18 20:56:55 UTC) #34
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1686433002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1686433002/120001
4 years, 10 months ago (2016-02-18 21:11:25 UTC) #36
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/145373)
4 years, 10 months ago (2016-02-18 21:40:58 UTC) #38
Evan Stade
ping msw, try failures seem unrelated
4 years, 10 months ago (2016-02-18 22:33:39 UTC) #39
Evan Stade
On 2016/02/18 22:33:39, Evan Stade wrote: > ping msw, try failures seem unrelated ping msw
4 years, 10 months ago (2016-02-22 18:40:05 UTC) #40
msw
lgtm with nits https://codereview.chromium.org/1686433002/diff/120001/chrome/browser/ui/views/passwords/auto_signin_first_run_dialog_view.cc File chrome/browser/ui/views/passwords/auto_signin_first_run_dialog_view.cc (left): https://codereview.chromium.org/1686433002/diff/120001/chrome/browser/ui/views/passwords/auto_signin_first_run_dialog_view.cc#oldcode113 chrome/browser/ui/views/passwords/auto_signin_first_run_dialog_view.cc:113: // This method is called twice. ...
4 years, 10 months ago (2016-02-22 18:44:05 UTC) #41
Evan Stade
https://codereview.chromium.org/1686433002/diff/120001/chrome/browser/ui/views/passwords/auto_signin_first_run_dialog_view.cc File chrome/browser/ui/views/passwords/auto_signin_first_run_dialog_view.cc (left): https://codereview.chromium.org/1686433002/diff/120001/chrome/browser/ui/views/passwords/auto_signin_first_run_dialog_view.cc#oldcode113 chrome/browser/ui/views/passwords/auto_signin_first_run_dialog_view.cc:113: // This method is called twice. crbug.com/583330 On 2016/02/22 ...
4 years, 10 months ago (2016-02-22 22:10:18 UTC) #43
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1686433002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1686433002/140001
4 years, 10 months ago (2016-02-22 22:16:12 UTC) #45
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-22 23:23:13 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1686433002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1686433002/140001
4 years, 10 months ago (2016-02-22 23:41:03 UTC) #50
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/148831)
4 years, 10 months ago (2016-02-22 23:54:16 UTC) #52
Evan Stade
Going to TBR avi for javascript_app_modal_dialog_views.cc because it originally lived in chrome/browser/ui/views and it could ...
4 years, 10 months ago (2016-02-23 01:12:44 UTC) #55
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1686433002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1686433002/140001
4 years, 10 months ago (2016-02-23 01:14:18 UTC) #57
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/148881)
4 years, 10 months ago (2016-02-23 01:23:47 UTC) #59
Avi (use Gerrit)
On 2016/02/23 01:23:47, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 10 months ago (2016-02-23 15:44:38 UTC) #60
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1686433002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1686433002/160001
4 years, 10 months ago (2016-02-23 18:27:53 UTC) #63
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 10 months ago (2016-02-23 19:43:06 UTC) #65
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/6f69f42209045c9d0c8b6bfc44d83ca6eca70a74 Cr-Commit-Position: refs/heads/master@{#377057}
4 years, 10 months ago (2016-02-23 19:44:44 UTC) #67
shrike
A revert of this CL (patchset #9 id:160001) has been created in https://codereview.chromium.org/1730893002/ by shrike@chromium.org. ...
4 years, 10 months ago (2016-02-24 00:22:22 UTC) #68
Evan Stade
4 years, 10 months ago (2016-02-24 01:09:36 UTC) #69
Message was sent while issue was closed.
sorry for breakage. To whom it may concern, fix is here:
https://codereview.chromium.org/1729723003/


-- Evan Stade

On Tue, Feb 23, 2016 at 4:22 PM, <shrike@chromium.org> wrote:

> A revert of this CL (patchset #9 id:160001) has been created in
> https://codereview.chromium.org/1730893002/ by shrike@chromium.org.
>
> The reason for reverting is: Failure Builder: Linux Chromium OS ASan LSan
> Tests
> (1)
>
>
>
https://build.chromium.org/p/chromium.memory/builders/Linux%20Chromium%20OS%2...
>
>
>
https://build.chromium.org/p/chromium.memory/builders/Linux%20Chromium%20OS%2...
>
> ==12959==ERROR: AddressSanitizer: heap-use-after-free on address
> 0x60e000047640
> at pc 0x0000008c9c62 bp 0x7ffc51d4ad70 sp 0x7ffc51d4a530
> WRITE of size 16 at 0x60e000047640 thread T0 (browser_tests)
> #0 0x8c9c61 in __asan_memset
> (/tmp/runKDXLlt/out/Release/browser_tests+0x8c9c61)
> #1 0x7cb68dc in ash::LogoutConfirmationController::OnDialogClosed()
> ash/system/chromeos/session/logout_confirmation_controller.cc:83:11
> #2 0x5ce779b in views::Widget::OnNativeWidgetDestroying()
> ui/views/widget/widget.cc:1088:3
> #3 0x5d0a61e in OnWindowDestroying
> ui/views/widget/native_widget_aura.cc:830:3
> #4 0x5d0a61e in non-virtual thunk to
> views::NativeWidgetAura::OnWindowDestroying(aura::Window*)
> ui/views/widget/native_widget_aura.cc:828
> #5 0xde3a857 in aura::Window::~Window() ui/aura/window.cc:109:5
> #6 0xde3c02d in aura::Window::~Window() ui/aura/window.cc:102:19
> #7 0x7c41d9c in ash::RootWindowController::CloseChildWindows()
> ash/root_window_controller.cc:533:7
> #8 0x7bc1b5e in ash::WindowTreeHostManager::CloseChildWindows()
> ash/display/window_tree_host_manager.cc:350:7
> #9 0x7c8a720 in ash::Shell::~Shell() ash/shell.cc:767:3
> #10 0x7c8dc1d in ash::Shell::~Shell() ash/shell.cc:661:17
> #11 0x7c81f98 in ash::Shell::DeleteInstance() ash/shell.cc:210:3
> #12 0x6599ab1 in chrome::CloseAsh() chrome/browser/ui/ash/ash_init.cc:104:5
> #13 0x1231270c in ChromeBrowserMainParts::PostMainMessageLoopRun()
> chrome/browser/chrome_browser_main.cc:1850:5
> #14 0x56a5a84 in
> chromeos::ChromeBrowserMainPartsChromeos::PostMainMessageLoopRun()
> chrome/browser/chromeos/chrome_browser_main_chromeos.cc:837:3
> #15 0x80b952e in content::BrowserMainLoop::ShutdownThreadsAndCleanUp()
> content/browser/browser_main_loop.cc:987:5
> #16 0x88036cc in content::BrowserMainRunnerImpl::Shutdown()
> content/browser/browser_main_runner.cc:208:7
> #17 0x13830cf5 in content::BrowserMain(content::MainFunctionParams const&)
> content/browser/browser_main.cc:46:3
> #18 0x1184b150 in content::ContentMainRunnerImpl::Run()
> content/app/content_main_runner.cc:764:12
> #19 0x118482ca in content::ContentMain(content::ContentMainParams const&)
> content/app/content_main.cc:19:15
> #20 0x4641e54 in content::BrowserTestBase::SetUp()
> content/public/test/browser_test_base.cc:277:3
> #21 0x4404695 in InProcessBrowserTest::SetUp()
> chrome/test/base/in_process_browser_test.cc:255:3
> #22 0x2ecfc4b in policy::DeviceLocalAccountTest::SetUp()
> chrome/browser/chromeos/policy/device_local_account_browsertest.cc:440:5
> #23 0x4ff7ed6 in HandleExceptionsInMethodIfSupported<testing::Test, void>
> testing/gtest/src/gtest.cc:2458:12
> #24 0x4ff7ed6 in testing::Test::Run() testing/gtest/src/gtest.cc:2470
> #25 0x4ffa837 in testing::TestInfo::Run() testing/gtest/src/gtest.cc:2656:5
> #26 0x4ffb62a in testing::TestCase::Run() testing/gtest/src/gtest.cc:2774:5
> #27 0x5010420 in testing::internal::UnitTestImpl::RunAllTests()
> testing/gtest/src/gtest.cc:4647:11
> #28 0x500f84b in
> HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>
> testing/gtest/src/gtest.cc:2458:12
> #29 0x500f84b in testing::UnitTest::Run() testing/gtest/src/gtest.cc:4255
> #30 0x45dc506 in RUN_ALL_TESTS testing/gtest/include/gtest/gtest.h:2237:10
> #31 0x45dc506 in base::TestSuite::Run() base/test/test_suite.cc:231
> #32 0x288fafa in ChromeBrowserTestSuiteRunner::RunTestSuite(int, char**)
> chrome/test/base/browser_tests_main.cc:14:12
> #33 0x118cb72b in content::LaunchTests(content::TestLauncherDelegate*, int,
> int, char**) content/public/test/test_launcher.cc:499:12
> #34 0x42caaa2 in LaunchChromeTests(int, ChromeTestSuiteRunner*, int,
> char**)
> chrome/test/base/chrome_test_launcher.cc:128:10
> #35 0x288f9fc in main chrome/test/base/browser_tests_main.cc:21:10
> #36 0x7f125cc1276c in __libc_start_main
> /build/eglibc-rrybNj/eglibc-2.15/csu/libc-start.c:226
> .
>
> https://codereview.chromium.org/1686433002/
>

-- 
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698