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

Unified Diff: components/translate/core/common/translate_metrics.cc

Issue 1549993003: Switch to standard integer types in components/, part 4 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
Index: components/translate/core/common/translate_metrics.cc
diff --git a/components/translate/core/common/translate_metrics.cc b/components/translate/core/common/translate_metrics.cc
index 84dcf34eff760bf44d0f3f39f4539ad562a3b733..ae31a230c4dcdb1f578c5a38f0be2db594089b83 100644
--- a/components/translate/core/common/translate_metrics.cc
+++ b/components/translate/core/common/translate_metrics.cc
@@ -4,7 +4,10 @@
#include "components/translate/core/common/translate_metrics.h"
-#include "base/basictypes.h"
+#include <stddef.h>
+#include <stdint.h>
+
+#include "base/macros.h"
#include "base/metrics/histogram_macros.h"
#include "url/url_constants.h"
@@ -78,24 +81,21 @@ void ReportLanguageVerification(LanguageVerificationType type) {
}
void ReportTimeToBeReady(double time_in_msec) {
- UMA_HISTOGRAM_MEDIUM_TIMES(
- kTranslateTimeToBeReady,
- base::TimeDelta::FromMicroseconds(
- static_cast<int64>(time_in_msec * 1000.0)));
+ UMA_HISTOGRAM_MEDIUM_TIMES(kTranslateTimeToBeReady,
+ base::TimeDelta::FromMicroseconds(
+ static_cast<int64_t>(time_in_msec * 1000.0)));
}
void ReportTimeToLoad(double time_in_msec) {
- UMA_HISTOGRAM_MEDIUM_TIMES(
- kTranslateTimeToLoad,
- base::TimeDelta::FromMicroseconds(
- static_cast<int64>(time_in_msec * 1000.0)));
+ UMA_HISTOGRAM_MEDIUM_TIMES(kTranslateTimeToLoad,
+ base::TimeDelta::FromMicroseconds(
+ static_cast<int64_t>(time_in_msec * 1000.0)));
}
void ReportTimeToTranslate(double time_in_msec) {
- UMA_HISTOGRAM_MEDIUM_TIMES(
- kTranslateTimeToTranslate,
- base::TimeDelta::FromMicroseconds(
- static_cast<int64>(time_in_msec * 1000.0)));
+ UMA_HISTOGRAM_MEDIUM_TIMES(kTranslateTimeToTranslate,
+ base::TimeDelta::FromMicroseconds(
+ static_cast<int64_t>(time_in_msec * 1000.0)));
}
void ReportUserActionDuration(base::TimeTicks begin, base::TimeTicks end) {
« no previous file with comments | « components/translate/core/common/translate_errors.h ('k') | components/translate/core/common/translate_metrics_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698