diff --git a/browser/brave_screenshots/strategies/fullpage_strategy.cc b/browser/brave_screenshots/strategies/fullpage_strategy.cc index cb6dccc41944..b3924611f0b8 100644 --- a/browser/brave_screenshots/strategies/fullpage_strategy.cc +++ b/browser/brave_screenshots/strategies/fullpage_strategy.cc @@ -83,7 +83,7 @@ void FullPageStrategy::OnLayoutMetricsReceived(int width, int height) { } bool FullPageStrategy::DidClipScreenshot() const { - return screenshot_was_clipped_.value_or(false); + return screenshot_was_clipped_; } void FullPageStrategy::RequestFullPageScreenshot(int width, int height) { diff --git a/browser/brave_screenshots/strategies/fullpage_strategy.h b/browser/brave_screenshots/strategies/fullpage_strategy.h index 0b0adf01f0c4..c6bc47b1edcf 100644 --- a/browser/brave_screenshots/strategies/fullpage_strategy.h +++ b/browser/brave_screenshots/strategies/fullpage_strategy.h @@ -50,7 +50,7 @@ class FullPageStrategy : public BraveScreenshotStrategy, image_editor::ScreenshotCaptureCallback callback_; base::WeakPtr web_contents_; scoped_refptr devtools_host_; - std::optional screenshot_was_clipped_; + bool screenshot_was_clipped_ = false; int next_id_ = 1; };