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

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

Issue 2459583002: Use InstallDetails in setup. (Closed)
Patch Set: another doc comment Created 3 years, 10 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
« no previous file with comments | « chrome/installer/setup/run_all_unittests.cc ('k') | chrome/installer/setup/setup_install_details.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..1545e8dcc6ab0966f10f8472fc87bc24474b770b
--- /dev/null
+++ b/chrome/installer/setup/setup_install_details.h
@@ -0,0 +1,34 @@
+// Copyright 2017 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_
+
+#include <memory>
+
+namespace base {
+class CommandLine;
+}
+namespace install_static {
+class PrimaryInstallDetails;
+}
+namespace installer {
+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);
+
+// Returns a PrimaryInstallDetails instance for the installer.
+std::unique_ptr<install_static::PrimaryInstallDetails> MakeInstallDetails(
+ const base::CommandLine& command_line,
+ const installer::MasterPreferences& master_preferences);
+
+#endif // CHROME_INSTALLER_SETUP_SETUP_INSTALL_DETAILS_H_
« no previous file with comments | « chrome/installer/setup/run_all_unittests.cc ('k') | chrome/installer/setup/setup_install_details.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698