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

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: 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..af9c7e96651ecc99928c1023c4ed016e96a804ee
--- /dev/null
+++ b/chrome/installer/util/google_update_util.h
@@ -0,0 +1,28 @@
+// 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_
+
+#include "base/command_line.h"
erikwright (departed) 2012/09/20 18:00:01 forward decl
huangs 2012/09/21 01:43:14 Done (deleted since it's no longer needed).
+#include "base/file_path.h"
erikwright (departed) 2012/09/20 18:00:01 forward decl
huangs 2012/09/21 01:43:14 Done (deleted since it's no longer needed).
+#include "base/string16.h"
erikwright (departed) 2012/09/20 18:00:01 not required.
huangs 2012/09/21 01:43:14 Done.
+
+namespace google_update {
grt (UTC plus 2) 2012/09/20 17:58:51 google_update -> installer
huangs 2012/09/21 01:43:14 No-op: I'm following google_update_constants.cc, w
+
+// Returns GoogleUpdateSetup.exe's executable path at |system_level|,
+// or an empty path if none is found.
+FilePath GetGoogleUpdateSetupExePathString(bool system_level);
erikwright (departed) 2012/09/20 18:00:01 PathString -> Path
huangs 2012/09/21 01:43:14 Done. Also making the routine local, until it is
+
+// Appends "/install runtime=true&needsadmin=false /silent" to |cmd_line|
grt (UTC plus 2) 2012/09/20 17:58:51 why is this a public function? who would call it?
huangs 2012/09/21 01:43:14 I was considering writing a unit test, since I'm d
+// for GoogleUpdateSetup.exe, to install Google Update at user-level.
+void AppendUserLevelGoogleUpdateInstallParam(CommandLine& cmd_line);
+
+// If user-level Google Update is not installed, calls the system-level
+// GoogleUpdateSetup.exe to install it.
+bool EnsureUserLevelGoogleUpdateInstalled();
erikwright (departed) 2012/09/20 18:00:01 "Returns true if already installed or installed su
huangs 2012/09/21 01:43:14 Done.
+
+} // namespace google_update
+
+#endif // CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698