diff --git a/ios/browser/api/p3a/brave_histograms_controller.h b/ios/browser/api/p3a/brave_histograms_controller.h index 4af6bc26d87a..f4b40b472d62 100644 --- a/ios/browser/api/p3a/brave_histograms_controller.h +++ b/ios/browser/api/p3a/brave_histograms_controller.h @@ -8,12 +8,14 @@ #import #import +#import NS_ASSUME_NONNULL_BEGIN /// Displays the `chrome://histograms` web page to verify P3A histograms OBJC_EXPORT @interface BraveHistogramsController : UIViewController +@property(readonly) WKWebView* webView; - (instancetype)init NS_UNAVAILABLE; @end diff --git a/ios/browser/api/p3a/brave_histograms_controller.mm b/ios/browser/api/p3a/brave_histograms_controller.mm index 1cf67ef6a12d..0a373b863afd 100644 --- a/ios/browser/api/p3a/brave_histograms_controller.mm +++ b/ios/browser/api/p3a/brave_histograms_controller.mm @@ -56,6 +56,10 @@ - (instancetype)initWithBrowserState:(ChromeBrowserState*)mainBrowserState { return self; } +- (WKWebView*)webView { + return _webView; +} + - (void)dealloc { [[_webController view] removeFromSuperview]; _webController = nullptr;