blob: c6c7d88b40e6322b5135eeee3349b98ab76de43d [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
void DumpstateWriter::AddDumpValue(const std::string& name,
const std::string& value) {
JNIEnv* env = base::android::AttachCurrentThread();
env, base::android::ConvertUTF8ToJavaString(env, name),
base::android::ConvertUTF8ToJavaString(env, value));
} // namespace chromecast