summaryrefslogtreecommitdiffstats
path: root/chrome/installer/setup/setup_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/installer/setup/setup_util.h')
-rw-r--r--chrome/installer/setup/setup_util.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/chrome/installer/setup/setup_util.h b/chrome/installer/setup/setup_util.h
new file mode 100644
index 0000000..c9e067f
--- /dev/null
+++ b/chrome/installer/setup/setup_util.h
@@ -0,0 +1,19 @@
+// Copyright (c) 2009 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.
+//
+// This file declares util functions for setup project.
+
+#ifndef CHROME_INSTALLER_SETUP_SETUP_UTIL_H_
+#define CHROME_INSTALLER_SETUP_SETUP_UTIL_H_
+
+#include "chrome/installer/util/version.h"
+
+namespace setup_util {
+ // Find the version of Chrome from an install source directory.
+ // Chrome_path should contain a version folder.
+ // Returns the first version found or NULL if no version is found.
+ installer::Version* GetVersionFromDir(const std::wstring& chrome_path);
+} // namespace setup_util
+
+#endif // CHROME_INSTALLER_SETUP_SETUP_UTIL_H_