From 498a7d82cc7fc04f9ca936e8854573ceb7d4740a Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Mon, 2 Dec 2024 13:58:52 -0500 Subject: [PATCH] chore: remove unused arg from BaseWindow::GetBackgroundColor() (#44924) chore: remove unused gin_helper::Arguments* arg from BaseWindow::GetBackgroundColor() looks like this was added in db79734b but never used Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Charles Kerr --- shell/browser/api/electron_api_base_window.cc | 2 +- shell/browser/api/electron_api_base_window.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/browser/api/electron_api_base_window.cc b/shell/browser/api/electron_api_base_window.cc index f67923ef1a17..c56d8923bb6a 100644 --- a/shell/browser/api/electron_api_base_window.cc +++ b/shell/browser/api/electron_api_base_window.cc @@ -640,7 +640,7 @@ void BaseWindow::SetBackgroundColor(const std::string& color_name) { window_->SetBackgroundColor(color); } -std::string BaseWindow::GetBackgroundColor(gin_helper::Arguments* args) const { +std::string BaseWindow::GetBackgroundColor() const { return ToRGBHex(window_->GetBackgroundColor()); } diff --git a/shell/browser/api/electron_api_base_window.h b/shell/browser/api/electron_api_base_window.h index c488588d9cdf..765e814d8403 100644 --- a/shell/browser/api/electron_api_base_window.h +++ b/shell/browser/api/electron_api_base_window.h @@ -162,7 +162,7 @@ class BaseWindow : public gin_helper::TrackableObject, bool IsKiosk() const; bool IsTabletMode() const; virtual void SetBackgroundColor(const std::string& color_name); - std::string GetBackgroundColor(gin_helper::Arguments* args) const; + std::string GetBackgroundColor() const; void InvalidateShadow(); void SetHasShadow(bool has_shadow); bool HasShadow() const;