credit_utils_android.cc 588 B

123456789101112131415161718
  1. // Copyright 2019 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.
  4. #include "components/about_ui/credit_utils.h"
  5. #include "base/files/file.h"
  6. #include "components/about_ui/android/about_ui_jni_headers/CreditUtils_jni.h"
  7. namespace about_ui {
  8. static void JNI_CreditUtils_WriteCreditsHtml(JNIEnv* env, jint fd) {
  9. std::string html_content = GetCredits(false);
  10. base::File out_file(fd);
  11. out_file.WriteAtCurrentPos(html_content.c_str(), html_content.size());
  12. }
  13. } // namespace about_ui