[MacViews] Show comboboxes with a native NSMenu
[chromium-blink-merge.git] / chromecast / base / android / dumpstate_writer.cc
blob7dabfb2d1f00c8604e513f6dba608bd5f4e11835
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.
5 #include "chromecast/base/android/dumpstate_writer.h"
7 #include "base/android/jni_android.h"
8 #include "base/android/jni_string.h"
9 #include "jni/DumpstateWriter_jni.h"
11 namespace chromecast {
13 // static
14 bool DumpstateWriter::RegisterJni(JNIEnv* env) {
15 return RegisterNativesImpl(env);
18 // static
19 void DumpstateWriter::AddDumpValue(const std::string& name,
20 const std::string& value) {
21 JNIEnv* env = base::android::AttachCurrentThread();
22 Java_DumpstateWriter_addDumpValue(
23 env,
24 base::android::ConvertUTF8ToJavaString(env, name).obj(),
25 base::android::ConvertUTF8ToJavaString(env, value).obj());
28 } // namespace chromecast