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

Unified Diff: components/nacl/renderer/ppb_nacl_private_impl.cc

Issue 331973002: Pepper: Move more UMA stuff out of trusted plugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment fix for dmichael Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ppapi/api/private/ppb_nacl_private.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/nacl/renderer/ppb_nacl_private_impl.cc
diff --git a/components/nacl/renderer/ppb_nacl_private_impl.cc b/components/nacl/renderer/ppb_nacl_private_impl.cc
index b91eb26c1e620b123175520614f7eac61f7c219d..e7150e6ddfce0c89d4b757c7681ba088dbdc9495 100644
--- a/components/nacl/renderer/ppb_nacl_private_impl.cc
+++ b/components/nacl/renderer/ppb_nacl_private_impl.cc
@@ -1499,6 +1499,15 @@ void ReportSelLdrStatus(PP_Instance instance,
HistogramEnumerate(name, load_status, max_status);
}
+void LogTranslateTime(const char* histogram_name,
+ int64_t time_in_us) {
+ ppapi::PpapiGlobals::Get()->GetMainThreadMessageLoop()->PostTask(
+ FROM_HERE,
+ base::Bind(&HistogramTimeTranslation,
+ std::string(histogram_name),
+ time_in_us / 1000));
+}
+
const PPB_NaCl_Private nacl_interface = {
&LaunchSelLdr,
&StartPpapiProxy,
@@ -1538,7 +1547,8 @@ const PPB_NaCl_Private nacl_interface = {
&PostMessageToJavaScript,
&DownloadNexe,
&DownloadFile,
- &ReportSelLdrStatus
+ &ReportSelLdrStatus,
+ &LogTranslateTime
};
} // namespace
« no previous file with comments | « no previous file | ppapi/api/private/ppb_nacl_private.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698