Fix method signature on macOS.

This commit is contained in:
Charlie Hess 2017-01-26 11:54:37 -08:00 committed by Kevin Sawicki
parent 02dfdf75a0
commit 26d4a3b0ba

View file

@ -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