This commit is contained in:
Cheng Zhao 2014-02-02 19:58:25 +08:00
parent 5da1e9ed10
commit c13724b342
2 changed files with 3 additions and 4 deletions

View file

@ -48,8 +48,7 @@ void AutoUpdater::SetFeedURL(const std::string& feed) {
int state = [stateNumber integerValue]; int state = [stateNumber integerValue];
if (state == SQRLUpdaterStateCheckingForUpdate) { if (state == SQRLUpdaterStateCheckingForUpdate) {
delegate->OnCheckingForUpdate(); delegate->OnCheckingForUpdate();
} } else if (state == SQRLUpdaterStateDownloadingUpdate) {
else if (state == SQRLUpdaterStateDownloadingUpdate) {
delegate->OnUpdateAvailable(); delegate->OnUpdateAvailable();
} }
}]; }];
@ -79,8 +78,7 @@ void AutoUpdater::CheckForUpdates() {
base::Time::FromDoubleT(update.releaseDate.timeIntervalSince1970), base::Time::FromDoubleT(update.releaseDate.timeIntervalSince1970),
base::SysNSStringToUTF8(update.updateURL.absoluteString), base::SysNSStringToUTF8(update.updateURL.absoluteString),
base::Bind(RelaunchToInstallUpdate)); base::Bind(RelaunchToInstallUpdate));
} } else {
else {
// When the completed event is sent with no update, then we know there // When the completed event is sent with no update, then we know there
// is no update available. // is no update available.
delegate->OnUpdateNotAvailable(); delegate->OnUpdateNotAvailable();

View file

@ -13,6 +13,7 @@ SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
def main(): def main():
rm_rf(os.path.join(SOURCE_ROOT, 'out')) rm_rf(os.path.join(SOURCE_ROOT, 'out'))
rm_rf(os.path.join(SOURCE_ROOT, 'node_modules')) rm_rf(os.path.join(SOURCE_ROOT, 'node_modules'))
rm_rf(os.path.join(SOURCE_ROOT, 'frameworks'))
rm_rf(os.path.join(SOURCE_ROOT, 'vendor', 'brightray', 'vendor', 'download', rm_rf(os.path.join(SOURCE_ROOT, 'vendor', 'brightray', 'vendor', 'download',
'libchromiumcontent')) 'libchromiumcontent'))