Pass continueUpdate callback in the 'will-install-update' event.
This commit is contained in:
parent
a918cd6b4e
commit
f435ed8667
2 changed files with 6 additions and 2 deletions
|
@ -25,7 +25,7 @@ void AutoUpdater::WillInstallUpdate(const std::string& version,
|
|||
const base::Closure& install) {
|
||||
base::ListValue args;
|
||||
args.AppendString(version);
|
||||
bool prevent_default = Emit("will-install-update", &args);
|
||||
bool prevent_default = Emit("will-install-update-raw", &args);
|
||||
|
||||
if (prevent_default)
|
||||
continue_update_ = install;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue