blob: efe9f110a68f4277a1ebce2826a5ec7d212f7dc7 [file] [log] [blame]
// Copyright 2020 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 "chrome/browser/android/feed/v2/feed_service_bridge.h"
#include "base/android/jni_android.h"
#include "base/android/jni_string.h"
#include "chrome/android/chrome_jni_headers/FeedServiceBridge_jni.h"
namespace feed {
std::string FeedServiceBridge::GetLanguageTag() {
JNIEnv* env = base::android::AttachCurrentThread();
return ConvertJavaStringToUTF8(env,
Java_FeedServiceBridge_getLanguageTag(env));
}
} // namespace feed