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 6dde3994174266dd0d5c80159c3d1dd7c21bbf3a..d20d125f15410e77e485befe2f9ba6c1db58244d 100644 |
--- a/content/browser/renderer_host/render_widget_host_view_gtk.cc |
+++ b/content/browser/renderer_host/render_widget_host_view_gtk.cc |
@@ -644,8 +644,8 @@ void RenderWidgetHostViewGtk::DidBecomeSelected() { |
if (!is_hidden_) |
return; |
- if (tab_switch_paint_time_.is_null()) |
- tab_switch_paint_time_ = base::TimeTicks::Now(); |
+ if (web_contents_switch_paint_time_.is_null()) |
+ web_contents_switch_paint_time_ = base::TimeTicks::Now(); |
is_hidden_ = false; |
host_->WasRestored(); |
} |
@@ -1106,14 +1106,14 @@ void RenderWidgetHostViewGtk::Paint(const gfx::Rect& damage_rect) { |
// time the backing store is NULL... |
whiteout_start_time_ = base::TimeTicks(); |
} |
- if (!tab_switch_paint_time_.is_null()) { |
- base::TimeDelta tab_switch_paint_duration = base::TimeTicks::Now() - |
- tab_switch_paint_time_; |
+ if (!web_contents_switch_paint_time_.is_null()) { |
+ base::TimeDelta web_contents_switch_paint_duration = |
+ base::TimeTicks::Now() - web_contents_switch_paint_time_; |
UMA_HISTOGRAM_TIMES("MPArch.RWH_TabSwitchPaintDuration", |
- tab_switch_paint_duration); |
- // Reset tab_switch_paint_time_ to 0 so future tab selections are |
+ web_contents_switch_paint_duration); |
+ // Reset web_contents_switch_paint_time_ to 0 so future tab selections are |
// recorded. |
- tab_switch_paint_time_ = base::TimeTicks(); |
+ web_contents_switch_paint_time_ = base::TimeTicks(); |
} |
} else { |
if (window) |