application_info_helper.h 677 B

12345678910111213141516171819
  1. // Copyright 2021 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. #ifndef WEBLAYER_BROWSER_ANDROID_APPLICATION_INFO_HELPER_H_
  5. #define WEBLAYER_BROWSER_ANDROID_APPLICATION_INFO_HELPER_H_
  6. #include <string>
  7. namespace weblayer {
  8. // Looks for a metadata tag with name |key| in the application's manifest, and
  9. // returns its value if found, or |default_value| otherwise.
  10. bool GetApplicationMetadataAsBoolean(const std::string& key,
  11. bool default_value);
  12. } // namespace weblayer
  13. #endif // WEBLAYER_BROWSER_ANDROID_APPLICATION_INFO_HELPER_H_