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

Issue 11776018: Change DCHECK to DLOG_IF for non zero file watchers in FileBrowserEventRouter. (Closed)

Created:
7 years, 11 months ago by kinaba
Modified:
7 years, 11 months ago
Reviewers:
hashimoto
CC:
chromium-reviews, nkostylev+watch_chromium.org, Aaron Boodman, rginda+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Change DCHECK to DLOG_IF for non zero file watchers in FileBrowserEventRouter. The condition file_watchers_.empty() does not hold if user signed out with Files.app opened (onunload looks intentionally suppressed http://crbug.com/123107 in this case). So DCHECK is not appropriate. That said, the check can be useful to detect possible future regressions to forget unregistering the file watch. So keeping it as DLOG should be useful. BUG=126275 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175317

Patch Set 1 : #

Total comments: 2

Patch Set 2 : More detailed message. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M chrome/browser/chromeos/extensions/file_browser_event_router.cc View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
kinaba
ptal
7 years, 11 months ago (2013-01-07 05:20:47 UTC) #1
hashimoto
lgtm https://codereview.chromium.org/11776018/diff/2001/chrome/browser/chromeos/extensions/file_browser_event_router.cc File chrome/browser/chromeos/extensions/file_browser_event_router.cc (right): https://codereview.chromium.org/11776018/diff/2001/chrome/browser/chromeos/extensions/file_browser_event_router.cc#newcode113 chrome/browser/chromeos/extensions/file_browser_event_router.cc:113: DLOG_IF(WARNING, !file_watchers_.empty()) << "Not all file watchers removed."; ...
7 years, 11 months ago (2013-01-07 05:25:38 UTC) #2
kinaba
https://codereview.chromium.org/11776018/diff/2001/chrome/browser/chromeos/extensions/file_browser_event_router.cc File chrome/browser/chromeos/extensions/file_browser_event_router.cc (right): https://codereview.chromium.org/11776018/diff/2001/chrome/browser/chromeos/extensions/file_browser_event_router.cc#newcode113 chrome/browser/chromeos/extensions/file_browser_event_router.cc:113: DLOG_IF(WARNING, !file_watchers_.empty()) << "Not all file watchers removed."; On ...
7 years, 11 months ago (2013-01-07 05:51:49 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinaba@chromium.org/11776018/3017
7 years, 11 months ago (2013-01-07 05:51:59 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinaba@chromium.org/11776018/3017
7 years, 11 months ago (2013-01-07 05:54:59 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinaba@chromium.org/11776018/3017
7 years, 11 months ago (2013-01-07 05:55:52 UTC) #6
commit-bot: I haz the power
7 years, 11 months ago (2013-01-07 06:09:16 UTC) #7
Retried try job too often on ios_dbg_simulator for step(s) sync_unit_tests,
unit_tests

Powered by Google App Engine
This is Rietveld 408576698