"Fossies" - the Fresh Open Source Software Archive

Member "brave-core-1.30.89/chromium_src/chrome/browser/android/preferences/about_settings_bridge.cc" (10 Oct 2021, 1239 Bytes) of package /linux/www/brave-core-1.30.89.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "about_settings_bridge.cc" see the Fossies "Dox" file reference documentation.

    1 /* Copyright (c) 2019 The Brave Authors. All rights reserved.
    2  * This Source Code Form is subject to the terms of the Mozilla Public
    3  * License, v. 3.0. If a copy of the MPL was not distributed with this file,
    4  * You can obtain one at http://mozilla.org/MPL/2.0/. */
    5 
    6 #include "brave/components/version_info/version_info.h"
    7 #include "chrome/android/chrome_jni_headers/AboutSettingsBridge_jni.h"
    8 
    9 #define JNI_AboutSettingsBridge_GetApplicationVersion \
   10   JNI_AboutSettingsBridge_GetApplicationVersion_ChromiumImpl
   11 #include "../../../../../../chrome/browser/android/preferences/about_settings_bridge.cc"
   12 #undef JNI_AboutSettingsBridge_GetApplicationVersion
   13 
   14 static ScopedJavaLocalRef<jstring>
   15 JNI_AboutSettingsBridge_GetApplicationVersion(JNIEnv* env) {
   16   JNI_AboutSettingsBridge_GetApplicationVersion_ChromiumImpl(env);
   17 
   18   base::android::BuildInfo* android_build_info =
   19       base::android::BuildInfo::GetInstance();
   20   std::string application(android_build_info->host_package_label());
   21   application.append(" ");
   22   application.append(android_build_info->package_version_name());
   23   application.append(", Chromium ");
   24   application.append(version_info::GetBraveChromiumVersionNumber());
   25 
   26   return ConvertUTF8ToJavaString(env, application);
   27 }