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

Issue 2863303002: Fixes a DCHECK in tools_menu_button_observer_bridge during tests (Closed)

Created:
3 years, 7 months ago by pkl (ping after 24h if needed)
Modified:
3 years, 7 months ago
CC:
chromium-reviews, ios-reviews+chrome_chromium.org, ios-reviews_chromium.org, noyau+watch_chromium.org, marq+watch_chromium.org, stkhapugin
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixes a DCHECK in tools_menu_button_observer_bridge during tests A DCHECK was observed during omnibox_perftest. It traces down to -[ToolsMenuButtonObserverBridge readingListModelBeingDeleted:] being called twice and the second call triggered the DCHECK. DependencyManager::DestroyContextServices() calls ContextShutdown() and then ContextDestroyed() on all dependencies. Each of the call entered -readingListModelBeingDeleted: because there is no distinction between Shutdown and Destroyed. BUG=717300 Review-Url: https://codereview.chromium.org/2863303002 Cr-Commit-Position: refs/heads/master@{#472825} Committed: https://chromium.googlesource.com/chromium/src/+/52ab15efe9499088cd3c2a2474887671630b0311

Patch Set 1 #

Patch Set 2 : fixed component_unittests #

Total comments: 6

Patch Set 3 : delete unnecessary implementation of Shutdown() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -3 lines) Patch
M components/reading_list/core/reading_list_model_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/reading_list/core/reading_list_model_observer.h View 1 chunk +3 lines, -0 lines 0 comments Download
M components/reading_list/core/reading_list_model_unittest.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M components/reading_list/ios/reading_list_model_bridge_observer.h View 2 chunks +2 lines, -0 lines 0 comments Download
M components/reading_list/ios/reading_list_model_bridge_observer.mm View 1 chunk +8 lines, -0 lines 0 comments Download
M ios/chrome/browser/ui/omnibox_perftest.mm View 1 2 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 17 (7 generated)
pkl (ping after 24h if needed)
Please review: noyau: components/reading_list/ rohitrao: ios/chrome/browser/ui/ OWNERS and overall
3 years, 7 months ago (2017-05-08 13:03:33 UTC) #2
noyau (Ping after 24h)
lgtm https://codereview.chromium.org/2863303002/diff/20001/ios/chrome/browser/ui/toolbar/tools_menu_button_observer_bridge.mm File ios/chrome/browser/ui/toolbar/tools_menu_button_observer_bridge.mm (right): https://codereview.chromium.org/2863303002/diff/20001/ios/chrome/browser/ui/toolbar/tools_menu_button_observer_bridge.mm#newcode66 ios/chrome/browser/ui/toolbar/tools_menu_button_observer_bridge.mm:66: } Is this method really necessary? In C++ ...
3 years, 7 months ago (2017-05-09 13:27:11 UTC) #3
rohitrao (ping after 24h)
ios/ lgtm but I'm not very familiar with the reading list code. It seems weird ...
3 years, 7 months ago (2017-05-09 14:52:09 UTC) #4
pkl (ping after 24h if needed)
On 2017/05/09 14:52:09, rohitrao (ping after 24h) wrote: > ios/ lgtm but I'm not very ...
3 years, 7 months ago (2017-05-09 15:04:39 UTC) #5
noyau (Ping after 24h)
Just land it. I'd remove the implementation just doing a DCHECK, but other than that, ...
3 years, 7 months ago (2017-05-15 14:36:12 UTC) #6
pkl (ping after 24h if needed)
Added more comments and answered questions. Submitting. https://codereview.chromium.org/2863303002/diff/20001/ios/chrome/browser/ui/toolbar/tools_menu_button_observer_bridge.mm File ios/chrome/browser/ui/toolbar/tools_menu_button_observer_bridge.mm (right): https://codereview.chromium.org/2863303002/diff/20001/ios/chrome/browser/ui/toolbar/tools_menu_button_observer_bridge.mm#newcode66 ios/chrome/browser/ui/toolbar/tools_menu_button_observer_bridge.mm:66: } On ...
3 years, 7 months ago (2017-05-18 04:51:04 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2863303002/40001
3 years, 7 months ago (2017-05-18 04:52:58 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/458603)
3 years, 7 months ago (2017-05-18 06:15:23 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2863303002/40001
3 years, 7 months ago (2017-05-18 14:08:38 UTC) #14
commit-bot: I haz the power
3 years, 7 months ago (2017-05-18 15:42:51 UTC) #17
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/52ab15efe9499088cd3c2a247488...

Powered by Google App Engine
This is Rietveld 408576698