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

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

Issue 8775023: Remove static initialization from the panels code. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
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
« no previous file with comments | « chrome/browser/ui/panels/panel_browser_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/panels/panel_browser_window_gtk.cc
diff --git a/chrome/browser/ui/panels/panel_browser_window_gtk.cc b/chrome/browser/ui/panels/panel_browser_window_gtk.cc
index 68db6feace21e62f2c04fa2fd871e9da16f905d8..a509de91de213afa067aa08aacd5ea1842ed9c55 100644
--- a/chrome/browser/ui/panels/panel_browser_window_gtk.cc
+++ b/chrome/browser/ui/panels/panel_browser_window_gtk.cc
@@ -30,8 +30,7 @@ const float kDrawAttentionBFraction = kDrawAttentionB / 255.0;
// Delay before click on a titlebar is allowed to minimize the panel after
// the 'draw attention' mode has been cleared.
-const base::TimeDelta kSuspendMinimizeOnClickIntervalMs =
- base::TimeDelta::FromMilliseconds(500);
+const int kSuspendMinimizeOnClickIntervalMs = 500;
// Markup for title text in draw attention state. Set to color white.
const char* const kDrawAttentionTitleMarkupPrefix =
@@ -587,8 +586,8 @@ void PanelBrowserWindowGtk::HandleFocusIn(GtkWidget* widget,
UpdateTitleBar();
DCHECK(panel_->expansion_state() == Panel::EXPANDED);
- disableMinimizeUntilTime_ =
- base::Time::Now() + kSuspendMinimizeOnClickIntervalMs;
+ disableMinimizeUntilTime_ = base::Time::Now() +
+ base::TimeDelta::FromMilliseconds(kSuspendMinimizeOnClickIntervalMs);
}
void PanelBrowserWindowGtk::OnDragBegin(GtkWidget* widget,
« no previous file with comments | « chrome/browser/ui/panels/panel_browser_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698