summaryrefslogtreecommitdiffstats
path: root/android_webview/native/aw_metrics_switch.cc
blob: 44ab70a3beebb718f8e226dac65f06d849d92f1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// 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 "android_webview/native/aw_metrics_switch.h"

#include "android_webview/browser/aw_metrics_service_client.h"
#include "android_webview/jni/AwMetricsServiceClient_jni.h"

namespace android_webview {

static void SetMetricsEnabled(
    JNIEnv* env,
    const base::android::JavaParamRef<jclass>& jcaller,
    jboolean enabled) {
  AwMetricsServiceClient::GetInstance()->SetMetricsEnabled(enabled);
}

bool RegisterAwMetricsServiceClient(JNIEnv* env) {
  return RegisterNativesImpl(env);
}

}  // namespace android_webview