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

Unified Diff: base/android/library_loader/library_loader_hooks.cc

Issue 2886933003: Use stricter type checking in UMA_HISTOGRAM_ENUMERATION (Closed)
Patch Set: fix new errors Created 3 years, 5 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
Index: base/android/library_loader/library_loader_hooks.cc
diff --git a/base/android/library_loader/library_loader_hooks.cc b/base/android/library_loader/library_loader_hooks.cc
index 1fe8048a162808a7863574cfd4fc14a687f6c07f..e02c66b2aad3be86bbd34822466b4e31e7fb17a2 100644
--- a/base/android/library_loader/library_loader_hooks.cc
+++ b/base/android/library_loader/library_loader_hooks.cc
@@ -124,9 +124,10 @@ static void RecordChromiumAndroidLinkerBrowserHistogram(
MAX_BROWSER_HISTOGRAM_CODE);
// Record the device support for loading a library directly from the APK file.
- UMA_HISTOGRAM_ENUMERATION("ChromiumAndroidLinker.LibraryLoadFromApkStatus",
- library_load_from_apk_status,
- LIBRARY_LOAD_FROM_APK_STATUS_CODES_MAX);
+ UMA_HISTOGRAM_ENUMERATION(
+ "ChromiumAndroidLinker.LibraryLoadFromApkStatus",
+ static_cast<LibraryLoadFromApkStatusCodes>(library_load_from_apk_status),
+ LIBRARY_LOAD_FROM_APK_STATUS_CODES_MAX);
dcheng 2017/07/17 09:13:59 Hmm a little sad. I would personally if we did the
wychen 2017/07/17 22:43:09 This function is the immediate JNI function, and t
dcheng 2017/07/18 10:28:07 Ah... I thought this was called as a helper. I did
wychen 2017/07/18 21:43:41 Got it. Let's move on to the split CLs then.
// Record how long it took to load the shared libraries.
UMA_HISTOGRAM_TIMES("ChromiumAndroidLinker.BrowserLoadTime",

Powered by Google App Engine
This is Rietveld 408576698