1515// This file is automatically generated by gen_amalgamated. Do not edit.
1616
1717// gen_amalgamated: predefined macros
18- #if !defined(GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER )
19- #define GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
18+ #if !defined(GOOGLE_PROTOBUF_NO_RTTI )
19+ #define GOOGLE_PROTOBUF_NO_RTTI
2020#endif
2121#if !defined(PERFETTO_IMPLEMENTATION)
2222#define PERFETTO_IMPLEMENTATION
2323#endif
24- #if !defined(GOOGLE_PROTOBUF_NO_RTTI )
25- #define GOOGLE_PROTOBUF_NO_RTTI
24+ #if !defined(GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER )
25+ #define GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
2626#endif
2727#include "perfetto.h"
2828// gen_amalgamated begin source: src/base/android_utils.cc
@@ -3120,15 +3120,14 @@ base::Status ListFilesRecursive(const std::string& dir_path,
31203120 if (glob_path.length() + 1 > MAX_PATH)
31213121 return base::ErrStatus("Directory path %s is too long", dir_path.c_str());
31223122 WIN32_FIND_DATAA ffd;
3123- // We do not use a ScopedResource for the HANDLE from FindFirstFile because
3124- // the invalid value INVALID_HANDLE_VALUE is not a constexpr under some
3125- // compile configurations, and thus cannot be used as a template argument.
3126- HANDLE hFind = FindFirstFileA(glob_path.c_str(), &ffd);
3127- if (hFind == INVALID_HANDLE_VALUE ) {
3123+
3124+ base::ScopedResource<HANDLE, FindClose, nullptr, false,
3125+ base::PlatformHandleChecker>
3126+ hFind( FindFirstFileA(glob_path.c_str(), &ffd) );
3127+ if (! hFind) {
31283128 // For empty directories, there should be at least one entry '.'.
31293129 // If FindFirstFileA returns INVALID_HANDLE_VALUE, this means directory
31303130 // couldn't be accessed.
3131- FindClose(hFind);
31323131 return base::ErrStatus("Failed to open directory %s", cur_dir.c_str());
31333132 }
31343133 do {
@@ -3137,13 +3136,12 @@ base::Status ListFilesRecursive(const std::string& dir_path,
31373136 if (ffd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) {
31383137 std::string subdir_path = cur_dir + ffd.cFileName + '/';
31393138 dir_queue.push_back(subdir_path);
3140- } else if (ffd.dwFileAttributes & FILE_ATTRIBUTE_NORMAL) {
3139+ } else {
31413140 const std::string full_path = cur_dir + ffd.cFileName;
31423141 PERFETTO_CHECK(full_path.length() > root_dir_path.length());
31433142 output.push_back(full_path.substr(root_dir_path.length()));
31443143 }
3145- } while (FindNextFileA(hFind, &ffd));
3146- FindClose(hFind);
3144+ } while (FindNextFileA(*hFind, &ffd));
31473145#else
31483146 ScopedDir dir = ScopedDir(opendir(cur_dir.c_str()));
31493147 if (!dir) {
@@ -6799,8 +6797,8 @@ const char* GetVersionString();
67996797#ifndef GEN_PERFETTO_VERSION_GEN_H_
68006798#define GEN_PERFETTO_VERSION_GEN_H_
68016799
6802- #define PERFETTO_VERSION_STRING() "v22.0-e9e81c015 "
6803- #define PERFETTO_VERSION_SCM_REVISION() "e9e81c01529610f02f63a87122c5bd878972ef7b "
6800+ #define PERFETTO_VERSION_STRING() "v22.1-fa9722821 "
6801+ #define PERFETTO_VERSION_SCM_REVISION() "fa97228215c6c58574fbd64ac92487c31c9a4d73 "
68046802
68056803#endif // GEN_PERFETTO_VERSION_GEN_H_
68066804/*
0 commit comments