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

Unified Diff: base/android/animation_frame_time_histogram.cc

Issue 1647803004: Move base to DEPS (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 11 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 | « base/android/animation_frame_time_histogram.h ('k') | base/android/apk_assets.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/animation_frame_time_histogram.cc
diff --git a/base/android/animation_frame_time_histogram.cc b/base/android/animation_frame_time_histogram.cc
deleted file mode 100644
index 0d796193829ccebde22d7eadf7b30015ea27509f..0000000000000000000000000000000000000000
--- a/base/android/animation_frame_time_histogram.cc
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "base/android/animation_frame_time_histogram.h"
-
-#include "base/android/jni_string.h"
-#include "base/metrics/histogram_macros.h"
-#include "jni/AnimationFrameTimeHistogram_jni.h"
-
-// static
-void SaveHistogram(JNIEnv* env,
- jobject jcaller,
- jstring j_histogram_name,
- jlongArray j_frame_times_ms,
- jint j_count) {
- jlong *frame_times_ms = env->GetLongArrayElements(j_frame_times_ms, NULL);
- std::string histogram_name = base::android::ConvertJavaStringToUTF8(
- env, j_histogram_name);
-
- for (int i = 0; i < j_count; ++i) {
- UMA_HISTOGRAM_TIMES(histogram_name.c_str(),
- base::TimeDelta::FromMilliseconds(frame_times_ms[i]));
- }
-}
-
-namespace base {
-namespace android {
-
-// static
-bool RegisterAnimationFrameTimeHistogram(JNIEnv* env) {
- return RegisterNativesImpl(env);
-}
-
-} // namespace android
-} // namespace base
« no previous file with comments | « base/android/animation_frame_time_histogram.h ('k') | base/android/apk_assets.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698