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

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 up last backward if else block found with regex('if \(.* != .*\) \{(\n[^}]*)*\} else') 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/setup/install_worker.h
diff --git a/chrome/installer/setup/install_worker.h b/chrome/installer/setup/install_worker.h
index aae27d7f91c7c41fb6685b6a8e39f6eb8f4b8324..19f44e32e9ce5a1857aaa2cb40c730b5d8a7f57e 100644
--- a/chrome/installer/setup/install_worker.h
+++ b/chrome/installer/setup/install_worker.h
@@ -5,6 +5,8 @@
// This file contains the declarations of the installer functions that build
// the WorkItemList used to install the application.
+//Pickup file for readability review.
+
#ifndef CHROME_INSTALLER_SETUP_INSTALL_WORKER_H_
#define CHROME_INSTALLER_SETUP_INSTALL_WORKER_H_
@@ -12,8 +14,6 @@
#include <vector>
-#include "base/memory/scoped_ptr.h"
-
class BrowserDistribution;
class CommandLine;
class FilePath;
@@ -32,8 +32,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 +79,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 +98,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 +182,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 +195,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);

Powered by Google App Engine
This is Rietveld 408576698