chore: remove unused isolate argument from Cookies constructor (#44921)
* chore: remove unused isolate argument from Cookies constructor
unused since the ginify cookies refactor in Mar 2020, commit 22202255
Co-authored-by: Charles Kerr <charles@charleskerr.com>
* fix: constructor only takes one arg now, so mark it explicit
Co-authored-by: Charles Kerr <charles@charleskerr.com>
---------
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
parent
baeabc03a3
commit
19c8b0f01f
2 changed files with 4 additions and 4 deletions
|
@ -292,8 +292,8 @@ std::string StringToCookieSameSite(const std::string* str_ptr,
|
||||||
|
|
||||||
gin::WrapperInfo Cookies::kWrapperInfo = {gin::kEmbedderNativeGin};
|
gin::WrapperInfo Cookies::kWrapperInfo = {gin::kEmbedderNativeGin};
|
||||||
|
|
||||||
Cookies::Cookies(v8::Isolate* isolate, ElectronBrowserContext* browser_context)
|
Cookies::Cookies(ElectronBrowserContext* browser_context)
|
||||||
: browser_context_(browser_context) {
|
: browser_context_{browser_context} {
|
||||||
cookie_change_subscription_ =
|
cookie_change_subscription_ =
|
||||||
browser_context_->cookie_change_notifier()->RegisterCookieChangeCallback(
|
browser_context_->cookie_change_notifier()->RegisterCookieChangeCallback(
|
||||||
base::BindRepeating(&Cookies::OnCookieChanged,
|
base::BindRepeating(&Cookies::OnCookieChanged,
|
||||||
|
@ -458,7 +458,7 @@ void Cookies::OnCookieChanged(const net::CookieChangeInfo& change) {
|
||||||
// static
|
// static
|
||||||
gin::Handle<Cookies> Cookies::Create(v8::Isolate* isolate,
|
gin::Handle<Cookies> Cookies::Create(v8::Isolate* isolate,
|
||||||
ElectronBrowserContext* browser_context) {
|
ElectronBrowserContext* browser_context) {
|
||||||
return gin::CreateHandle(isolate, new Cookies(isolate, browser_context));
|
return gin::CreateHandle(isolate, new Cookies{browser_context});
|
||||||
}
|
}
|
||||||
|
|
||||||
gin::ObjectTemplateBuilder Cookies::GetObjectTemplateBuilder(
|
gin::ObjectTemplateBuilder Cookies::GetObjectTemplateBuilder(
|
||||||
|
|
|
@ -50,7 +50,7 @@ class Cookies final : public gin::Wrappable<Cookies>,
|
||||||
Cookies& operator=(const Cookies&) = delete;
|
Cookies& operator=(const Cookies&) = delete;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
Cookies(v8::Isolate* isolate, ElectronBrowserContext* browser_context);
|
explicit Cookies(ElectronBrowserContext* browser_context);
|
||||||
~Cookies() override;
|
~Cookies() override;
|
||||||
|
|
||||||
v8::Local<v8::Promise> Get(v8::Isolate*,
|
v8::Local<v8::Promise> Get(v8::Isolate*,
|
||||||
|
|
Loading…
Add table
Reference in a new issue