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

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

Issue 10912096: C++ reability review for gab. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile errors 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
« no previous file with comments | « chrome/installer/setup/install.cc ('k') | chrome/installer/setup/install_worker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/setup/install_worker.h
diff --git a/chrome/installer/setup/install_worker.h b/chrome/installer/setup/install_worker.h
index aae27d7f91c7c41fb6685b6a8e39f6eb8f4b8324..b8dedf25509614394f02089ea86c412511719d81 100644
--- a/chrome/installer/setup/install_worker.h
+++ b/chrome/installer/setup/install_worker.h
@@ -12,8 +12,6 @@
#include <vector>
-#include "base/memory/scoped_ptr.h"
-
class BrowserDistribution;
class CommandLine;
class FilePath;
@@ -32,8 +30,8 @@ class Product;
void AddUninstallShortcutWorkItems(const InstallerState& installer_state,
const FilePath& setup_path,
const Version& new_version,
- WorkItemList* install_list,
- const Product& product);
+ const Product& product,
+ WorkItemList* install_list);
// Creates Version key for a product (if not already present) and sets the new
// product version as the last step. If |add_language_identifier| is true, the
@@ -79,6 +77,7 @@ void AddUsageStatsWorkItems(const InstallationState& original_state,
// it if not.
// If these operations are successful, the function returns true, otherwise
// false.
+// |current_version| can be NULL to indicate no Chrome is currently installed.
bool AppendPostInstallTasks(const InstallerState& installer_state,
const FilePath& setup_path,
const Version* current_version,
@@ -97,14 +96,15 @@ bool AppendPostInstallTasks(const InstallerState& installer_state,
// to be installed.
// temp_path: the path of working directory used during installation. This path
// does not need to exist.
+// |current_version| can be NULL to indicate no Chrome is currently installed.
void AddInstallWorkItems(const InstallationState& original_state,
const InstallerState& installer_state,
const FilePath& setup_path,
const FilePath& archive_path,
const FilePath& src_path,
const FilePath& temp_path,
+ const Version* current_version,
const Version& new_version,
- scoped_ptr<Version>* current_version,
WorkItemList* install_list);
// Appends registration or unregistration work items to |work_item_list| for the
@@ -180,11 +180,11 @@ void RefreshElevationPolicy();
// |machine_state|). |setup_path| (the path to the executable currently being
// run) and |new_version| (the version of the product(s) currently being
// installed) are required when processing product installation; they are unused
-// (and may therefore be NULL) when uninstalling.
+// (and may therefore be empty) when uninstalling.
void AddQuickEnableChromeFrameWorkItems(const InstallerState& installer_state,
const InstallationState& machine_state,
- const FilePath* setup_path,
- const Version* new_version,
+ const FilePath& setup_path,
+ const Version& new_version,
WorkItemList* work_item_list);
// Adds work items to add or remove the "quick-enable-application-host" command
@@ -193,22 +193,22 @@ void AddQuickEnableChromeFrameWorkItems(const InstallerState& installer_state,
// configuration (represented in |machine_state|). |setup_path| (the path to
// the executable currently being run) and |new_version| (the version of the
// product(s) currently being installed) are required when processing product
-// installation; they are unused (and may therefore be NULL) when uninstalling.
+// installation; they are unused ((and may therefore be empty) when
+// uninstalling).
void AddQuickEnableApplicationHostWorkItems(
const InstallerState& installer_state,
const InstallationState& machine_state,
- const FilePath* setup_path,
- const Version* new_version,
+ const FilePath& setup_path,
+ const Version& new_version,
WorkItemList* work_item_list);
// Adds work items to add or remove the "on-os-upgrade" command to |product|'s
// version key on the basis of the current operation (represented in
-// |installer_state|). |new_version| (the version of the product(s)
-// currently being installed) is required when processing product
-// installation; it is unused (and may therefore be NULL) when uninstalling.
+// |installer_state|). |new_version| is the version of the product(s)
+// currently being installed -- can be empty on uninstall.
void AddOsUpgradeWorkItems(const InstallerState& installer_state,
- const FilePath* setup_path,
- const Version* new_version,
+ const FilePath& setup_path,
+ const Version& new_version,
const Product& product,
WorkItemList* install_list);
« no previous file with comments | « chrome/installer/setup/install.cc ('k') | chrome/installer/setup/install_worker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698