blob: 7dabfb2d1f00c8604e513f6dba608bd5f4e11835 [file] [log] [blame]
// 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 "chromecast/base/android/dumpstate_writer.h"
#include "base/android/jni_android.h"
#include "base/android/jni_string.h"
#include "jni/DumpstateWriter_jni.h"
namespace chromecast {
// static
bool DumpstateWriter::RegisterJni(JNIEnv* env) {
return RegisterNativesImpl(env);
// static
void DumpstateWriter::AddDumpValue(const std::string& name,
const std::string& value) {
JNIEnv* env = base::android::AttachCurrentThread();
base::android::ConvertUTF8ToJavaString(env, name).obj(),
base::android::ConvertUTF8ToJavaString(env, value).obj());
} // namespace chromecast