#include "base/test/metrics/histogram_tester.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_commands.h"
#include "chrome/browser/ui/tabs/tab_enums.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/ui_test_utils.h"
#include "chrome/test/permissions/permission_request_manager_test_api.h"
#include "components/permissions/permission_uma_util.h"
#include "components/permissions/test/permission_request_observer.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
constexpr char kRequestNotifications[] = …;
class PermissionPromptMetricsTest : public InProcessBrowserTest { … };
IN_PROC_BROWSER_TEST_F(PermissionPromptMetricsTest,
IgnoreReasonUmaTestCloseOtherTab) { … }
IN_PROC_BROWSER_TEST_F(PermissionPromptMetricsTest,
IgnoreReasonUmaTestCloseCurrentTab) { … }
IN_PROC_BROWSER_TEST_F(PermissionPromptMetricsTest,
IgnoreReasonUmaTestCloseBrowser) { … }
IN_PROC_BROWSER_TEST_F(PermissionPromptMetricsTest,
IgnoreReasonUmaTestNavigation) { … }