This source file includes following definitions.
- GetMainEntryPointTime
- RegisterStartupMetricUtils
#include "chrome/browser/android/uma_utils.h"
#include "jni/UmaUtils_jni.h"
namespace chrome {
namespace android {
base::Time GetMainEntryPointTime() {
JNIEnv* env = base::android::AttachCurrentThread();
int64 startTimeUnixMs = Java_UmaUtils_getMainEntryPointTime(env);
return base::Time::UnixEpoch() +
base::TimeDelta::FromMilliseconds(startTimeUnixMs);
}
bool RegisterStartupMetricUtils(JNIEnv* env) {
return RegisterNativesImpl(env);
}
}
}