Skip to content

Commit

Permalink
Simplifies clip-indicating member
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathansampson committed Jan 10, 2025
1 parent 9e0c9ab commit f6f8e65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion browser/brave_screenshots/strategies/fullpage_strategy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion browser/brave_screenshots/strategies/fullpage_strategy.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class FullPageStrategy : public BraveScreenshotStrategy,
image_editor::ScreenshotCaptureCallback callback_;
base::WeakPtr<content::WebContents> web_contents_;
scoped_refptr<content::DevToolsAgentHost> devtools_host_;
std::optional<bool> screenshot_was_clipped_;
bool screenshot_was_clipped_ = false;
int next_id_ = 1;
};

Expand Down

0 comments on commit f6f8e65

Please sign in to comment.