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

Unified Diff: chrome/installer/util/installer_state.h

Issue 2292293002: Add installer::SetupSingleton. (Closed)
Patch Set: CR grt #9 Created 4 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/util/installer_state.h
diff --git a/chrome/installer/util/installer_state.h b/chrome/installer/util/installer_state.h
index 600965ef5a94f98c476494823976d678867316d0..8179e3455c60e3174cfcdb974c53de0443d2c862 100644
--- a/chrome/installer/util/installer_state.h
+++ b/chrome/installer/util/installer_state.h
@@ -119,6 +119,11 @@ class InstallerState {
// The full path to the place where the operand resides.
const base::FilePath& target_path() const { return target_path_; }
+ // Sets the value returned by target_path().
+ void set_target_path_for_testing(const base::FilePath& target_path) {
+ target_path_ = target_path;
+ }
+
// True if the "msi" preference is set or if a product with the "msi" state
// flag is set is to be operated on.
bool is_msi() const { return msi_; }
« no previous file with comments | « chrome/installer/setup/setup_singleton_unittest.cc ('k') | chrome/installer/util/prebuild/create_string_rc.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698