Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2959)

Unified Diff: chrome/installer/util/google_update_util.h

Issue 10957016: Ensuring Google Update at user-level is installed alongside App Host, for the quick-enable App Host… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes; moved switch checks; moved UninstallGoogleUpdate() and refactored with EnsureUserLevelGoogle… Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 100755
index 0000000000000000000000000000000000000000..b2ed658ddfb3621871b45c20e15c74fd3e6c994f
--- /dev/null
+++ b/chrome/installer/util/google_update_util.h
@@ -0,0 +1,24 @@
+// 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 not installed, calls the system-level
+// GoogleUpdateSetup.exe to install it (and waits for it to finish).
+// Returns true if already installed or installed successfully, and false if the
+// installation fails or times-out.
+bool EnsureUserLevelGoogleUpdateInstalled();
+
+// 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.
+// Return true if and only if this executes successfully.
grt (UTC plus 2) 2012/09/21 14:20:33 "Returns false if Google Update could not be execu
huangs 2012/09/21 18:48:43 Done.
+bool UninstallGoogleUpdate(bool system_install);
+
+} // namespace google_update
+
+#endif // CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698