Commit 220635e5 authored by bauerb@chromium.org's avatar bauerb@chromium.org

Add UMA actions for launching the plugin loader utility process.

BUG=171404

Review URL: https://codereview.chromium.org/140793002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@245322 0039d316-1c4b-4281-b951-d872f2087c98
parent dc60fd0d
......@@ -8,6 +8,7 @@
#include "base/message_loop/message_loop.h"
#include "base/message_loop/message_loop_proxy.h"
#include "base/metrics/histogram.h"
#include "base/metrics/user_metrics.h"
#include "content/browser/utility_process_host_impl.h"
#include "content/common/child_process_host_impl.h"
#include "content/common/plugin_list.h"
......@@ -45,6 +46,9 @@ bool PluginLoaderPosix::OnMessageReceived(const IPC::Message& message) {
}
void PluginLoaderPosix::OnProcessCrashed(int exit_code) {
RecordAction(
base::UserMetricsAction("PluginLoaderPosix.UtilityProcessCrashed"));
if (next_load_index_ == canonical_list_.size()) {
// How this case occurs is unknown. See crbug.com/111935.
canonical_list_.clear();
......@@ -100,6 +104,9 @@ void PluginLoaderPosix::LoadPluginsInternal() {
if (MaybeRunPendingCallbacks())
return;
RecordAction(
base::UserMetricsAction("PluginLoaderPosix.LaunchUtilityProcess"));
if (load_start_time_.is_null())
load_start_time_ = base::TimeTicks::Now();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment