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

Unified Diff: chrome/browser/ui/panels/panel_manager.cc

Issue 8423060: Classification of TODOs in Panel code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/panels/panel_manager.cc
diff --git a/chrome/browser/ui/panels/panel_manager.cc b/chrome/browser/ui/panels/panel_manager.cc
index d2795eeb08e3b292d279505f780453399610c59d..15754885fad13925e6597fe5846a51fc1017c784 100644
--- a/chrome/browser/ui/panels/panel_manager.cc
+++ b/chrome/browser/ui/panels/panel_manager.cc
@@ -429,10 +429,10 @@ void PanelManager::BringUpOrDownTitlebars(bool bring_up) {
// it makes it possible to hit the titlebar on OSX if Dock has Magnifying
// enabled - the panels stay up for a while after Dock magnification effect
// stops covering the panels.
- // TODO(dimich): when there is implementation which has both delays to be
- // different from zero, figure out what shoudl be the combined delay.
- if (!bring_up &&
- task_delay_milliseconds < kMillisecondsBeforeCollapsingFromTitleOnlyState)
+ // When there is an implementation that employs both delays, figure out how
+ // to combine them.
prasadt 2011/11/02 23:01:58 That sounds like a TODO that doesn't say TODO. Sho
Dmitry Titov 2011/11/02 23:32:19 I've reworded it, wanted an explanation for an ass
+ DCHECK(task_delay_milliseconds == 0);
+ if (!bring_up)
Dmitry Titov 2011/11/02 22:15:01 Who was I kidding? Having code for non-existing an
task_delay_milliseconds = kMillisecondsBeforeCollapsingFromTitleOnlyState;
// OnAutoHidingDesktopBarVisibilityChanged will handle this.

Powered by Google App Engine
This is Rietveld 408576698