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

Unified Diff: content/browser/renderer_host/render_widget_host_view_gtk.cc

Issue 8495043: Turn on -Wexit-time-destructors for ui and content. (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: content/browser/renderer_host/render_widget_host_view_gtk.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_gtk.cc b/content/browser/renderer_host/render_widget_host_view_gtk.cc
index 1d1baf45dab0d147c56f939cfaea7da6c07e8c35..05a750dd4b9c1a21f5baa5d8170473cd72e45c65 100644
--- a/content/browser/renderer_host/render_widget_host_view_gtk.cc
+++ b/content/browser/renderer_host/render_widget_host_view_gtk.cc
@@ -1023,7 +1023,7 @@ void RenderWidgetHostViewGtk::ModifyEventForEdgeDragging(
int new_dragged_at_vertical_edge = 0;
// Used for checking the edges of the monitor. We cache the values to save
// roundtrips to the X server.
- static gfx::Size drag_monitor_size;
+ CR_DEFINE_STATIC_LOCAL(gfx::Size, drag_monitor_size, ());
Mark Mentovai 2011/11/09 17:44:44 Separate this and the .gyp work into distinct chan
Nico 2011/11/09 18:16:02 Done.
if (event->state & GDK_BUTTON1_MASK) {
if (drag_monitor_size.IsEmpty()) {
// We can safely cache the monitor size for the duration of a drag.

Powered by Google App Engine
This is Rietveld 408576698