Fix method signature on macOS.
This commit is contained in:
parent
02dfdf75a0
commit
26d4a3b0ba
1 changed files with 3 additions and 2 deletions
|
@ -152,7 +152,7 @@ bool Browser::ContinueUserActivity(const std::string& type,
|
||||||
return prevent_default;
|
return prevent_default;
|
||||||
}
|
}
|
||||||
|
|
||||||
Browser::LoginItemSettings Browser::GetLoginItemSettings() {
|
Browser::LoginItemSettings Browser::GetLoginItemSettings(mate::Arguments* args) {
|
||||||
LoginItemSettings settings;
|
LoginItemSettings settings;
|
||||||
settings.open_at_login = base::mac::CheckLoginItemStatus(
|
settings.open_at_login = base::mac::CheckLoginItemStatus(
|
||||||
&settings.open_as_hidden);
|
&settings.open_as_hidden);
|
||||||
|
@ -162,7 +162,8 @@ Browser::LoginItemSettings Browser::GetLoginItemSettings() {
|
||||||
return settings;
|
return settings;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Browser::SetLoginItemSettings(LoginItemSettings settings) {
|
void Browser::SetLoginItemSettings(LoginItemSettings settings,
|
||||||
|
mate::Arguments* args) {
|
||||||
if (settings.open_at_login)
|
if (settings.open_at_login)
|
||||||
base::mac::AddToLoginItems(settings.open_as_hidden);
|
base::mac::AddToLoginItems(settings.open_as_hidden);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue