Chromium Code Reviews| Index: content/browser/plugin_loader_posix.cc |
| diff --git a/content/browser/plugin_loader_posix.cc b/content/browser/plugin_loader_posix.cc |
| index e6bc3ea27f5ace0c82b6527dc5541376e8c19bac..ac9e4067083ee5a4bc701629f651fbfa92550234 100644 |
| --- a/content/browser/plugin_loader_posix.cc |
| +++ b/content/browser/plugin_loader_posix.cc |
| @@ -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" |
| @@ -15,6 +16,9 @@ |
| #include "content/public/browser/browser_thread.h" |
| #include "content/public/browser/plugin_service.h" |
| +using base::RecordAction; |
| +using base::UserMetricsAction; |
|
jochen (gone - plz use gerrit)
2014/01/16 15:32:50
i don't think it's necessary to use "using"... usu
|
| + |
| namespace content { |
| PluginLoaderPosix::PluginLoaderPosix() |
| @@ -45,6 +49,8 @@ bool PluginLoaderPosix::OnMessageReceived(const IPC::Message& message) { |
| } |
| void PluginLoaderPosix::OnProcessCrashed(int exit_code) { |
| + RecordAction(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 +106,8 @@ void PluginLoaderPosix::LoadPluginsInternal() { |
| if (MaybeRunPendingCallbacks()) |
| return; |
| + RecordAction(UserMetricsAction("PluginLoaderPosix.LaunchUtilityProcess")); |
| + |
| if (load_start_time_.is_null()) |
| load_start_time_ = base::TimeTicks::Now(); |