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

Unified Diff: chrome/installer/setup/setup_install_details.h

Issue 2459583002: Use InstallDetails in setup. (Closed)
Patch Set: Created 4 years, 1 month 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/setup/setup_install_details.h
diff --git a/chrome/installer/setup/setup_install_details.h b/chrome/installer/setup/setup_install_details.h
new file mode 100644
index 0000000000000000000000000000000000000000..7bd86e61411b27844d4b0a1e8e071bbdd9205237
--- /dev/null
+++ b/chrome/installer/setup/setup_install_details.h
@@ -0,0 +1,26 @@
+// Copyright 2016 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.
+
+// Contains functions for determining the installer's InstallDetails at runtime.
+// See chrome/install_static/install_details.h for more information.
+
+#ifndef CHROME_INSTALLER_SETUP_SETUP_INSTALL_DETAILS_H_
+#define CHROME_INSTALLER_SETUP_SETUP_INSTALL_DETAILS_H_
+
+namespace base {
+class CommandLine;
+}
+namespace installer {
+class InstallerState;
+class MasterPreferences;
+}
+
+// Creates a PrimaryInstallDetails instance for the installer and makes it the
+// global InstallDetails for the process.
+void InitializeInstallDetails(
+ const base::CommandLine& command_line,
+ const installer::MasterPreferences& master_preferences,
+ const installer::InstallerState& installer_state);
+
+#endif // CHROME_INSTALLER_SETUP_SETUP_INSTALL_DETAILS_H_

Powered by Google App Engine
This is Rietveld 408576698