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

Side by Side Diff: chromecast/android/cast_metrics_helper_android.cc

Issue 2570623003: [Chromecast] Turn CastContentWindow into an abstract interface. (Closed)
Patch Set: Fix browser test Created 3 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 unified diff | Download patch
« no previous file with comments | « chromecast/android/cast_metrics_helper_android.h ('k') | chromecast/app/android/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chromecast/android/cast_metrics_helper_android.h"
6
7 #include "chromecast/base/metrics/cast_metrics_helper.h"
8 #include "jni/CastMetricsHelper_jni.h"
9
10 using base::android::JavaParamRef;
11
12 namespace chromecast {
13
14 // static
15 bool CastMetricsHelperAndroid::RegisterJni(JNIEnv* env) {
16 return RegisterNativesImpl(env);
17 }
18
19 void LogMediaPlay(JNIEnv* env, const JavaParamRef<jclass>& clazz) {
20 metrics::CastMetricsHelper::GetInstance()->LogMediaPlay();
21 }
22
23 void LogMediaPause(JNIEnv* env, const JavaParamRef<jclass>& clazz) {
24 metrics::CastMetricsHelper::GetInstance()->LogMediaPause();
25 }
26
27 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/android/cast_metrics_helper_android.h ('k') | chromecast/app/android/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698