Fix compilation error

This commit is contained in:
Cheng Zhao 2016-04-26 11:15:36 +09:00
parent 315cd9d2c8
commit f081c77422

View file

@ -97,9 +97,9 @@ void AutoUpdater::CheckForUpdates() {
}
void AutoUpdater::QuitAndInstall() {
Delegate* delegate = AutoUpdater::GetDelegate();
if (g_update_available) {
[[g_updater relaunchToInstallUpdate] subscribeError:^(NSError* error) {
Delegate* delegate = AutoUpdater::GetDelegate();
if (delegate)
delegate->OnError(base::SysNSStringToUTF8(error.localizedDescription));
}];