1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_UTIL_H_
6 #define CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_UTIL_H_
8 namespace google_update
{
10 // If user-level Google Update is absent, calls the system-level
11 // GoogleUpdateSetup.exe to install it, and waits until it finishes.
12 // Returns true if already installed, installed successfully, or
13 // if Google Update is not present at system-level.
14 // Returns false if the installation fails.
15 bool EnsureUserLevelGoogleUpdatePresent();
17 // Tell Google Update that an uninstall has taken place. This gives it a chance
18 // to uninstall itself straight away if no more products are installed on the
19 // system rather than waiting for the next time the scheduled task runs.
20 // Returns false if Google Update could not be executed, or times out.
21 bool UninstallGoogleUpdate(bool system_install
);
23 // Run setup.exe to attempt to reenable updates for for Chrome while elevating
24 // if needed. Setup.exe will call into
25 // GoogleUpdateSettings::ReenableAutoupdatesForApp() to do the work.
26 void ElevateIfNeededToReenableUpdates();
28 } // namespace google_update
30 #endif // CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_UTIL_H_