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

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 2736813004: Maintain the current renderer_hang_count in Stability.Counts. (Closed)
Patch Set: Created 3 years, 9 months 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 unified diff | Download patch
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/renderer_host/render_view_host_impl.h" 5 #include "content/browser/renderer_host/render_view_host_impl.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 938 matching lines...) Expand 10 before | Expand all | Expand 10 after
949 } else { 949 } else {
950 render_view_ready_on_process_launch_ = true; 950 render_view_ready_on_process_launch_ = true;
951 } 951 }
952 } 952 }
953 953
954 void RenderViewHostImpl::RenderViewReady() { 954 void RenderViewHostImpl::RenderViewReady() {
955 delegate_->RenderViewReady(this); 955 delegate_->RenderViewReady(this);
956 } 956 }
957 957
958 void RenderViewHostImpl::ClosePageTimeout() { 958 void RenderViewHostImpl::ClosePageTimeout() {
959 // Temporarily fire "hung" events to keep the renderer_hang_count from
960 // Stability.Counts stable.
961 NotificationService::current()->Notify(NOTIFICATION_RENDER_WIDGET_HOST_HANG,
962 Source<RenderWidgetHost>(nullptr),
963 NotificationService::NoDetails());
964
959 if (delegate_->ShouldIgnoreUnresponsiveRenderer()) 965 if (delegate_->ShouldIgnoreUnresponsiveRenderer())
960 return; 966 return;
961 967
962 UMA_HISTOGRAM_ENUMERATION( 968 UMA_HISTOGRAM_ENUMERATION(
963 "ChildProcess.HangRendererType", 969 "ChildProcess.HangRendererType",
964 RendererUnresponsiveType::RENDERER_UNRESPONSIVE_CLOSE_PAGE, 970 RendererUnresponsiveType::RENDERER_UNRESPONSIVE_CLOSE_PAGE,
965 RendererUnresponsiveType::RENDERER_UNRESPONSIVE_MAX); 971 RendererUnresponsiveType::RENDERER_UNRESPONSIVE_MAX);
966 972
967 ClosePageIgnoringUnloadEvents(); 973 ClosePageIgnoringUnloadEvents();
968 } 974 }
969 975
970 } // namespace content 976 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698