Chromium Code Reviews| Index: chrome/installer/util/google_update_util.h |
| diff --git a/chrome/installer/util/google_update_util.h b/chrome/installer/util/google_update_util.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..58d3e4bbc91b1793fb8326cf078ae25adbe5ba9e |
| --- /dev/null |
| +++ b/chrome/installer/util/google_update_util.h |
| @@ -0,0 +1,25 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_UTIL_H_ |
| +#define CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_UTIL_H_ |
| + |
| +namespace google_update { |
| + |
| +// If user-level Google Update is absent, calls the system-level |
| +// GoogleUpdateSetup.exe to install it, and waits until it finishes. |
| +// Returns true if already installed or installed successfully. |
| +// Returns false if the installation fails. |
| +bool EnsureUserLevelGoogleUpdatePresent(); |
| + |
| +// Tell Google Update that an uninstall has taken place. This gives it a chance |
| +// to uninstall itself straight away if no more products are installed on the |
| +// system rather than waiting for the next time the scheduled task runs. |
| +// Returns true if this executes successfully. |
|
grt (UTC plus 2)
2012/09/24 15:23:39
you can remove this line since the next one is cle
huangs
2012/09/24 15:50:59
Done.
|
| +// Returns false if Google Update could not be executed, or times out. |
| +bool UninstallGoogleUpdate(bool system_install); |
| + |
| +} // namespace google_update |
| + |
| +#endif // CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_UTIL_H_ |