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

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

Issue 96193003: Uninstall multi-install Chrome Frame when updated. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase to r238541 Created 7 years 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/util/install_util.cc ('k') | chrome/installer/util/installer_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/installer_state.h
diff --git a/chrome/installer/util/installer_state.h b/chrome/installer/util/installer_state.h
index ffff1eef98fce24864f2df6589e199c37d1c8e77..fd65574c347ceac546a3b628465677fb02b6ab33 100644
--- a/chrome/installer/util/installer_state.h
+++ b/chrome/installer/util/installer_state.h
@@ -216,16 +216,20 @@ class InstallerState {
protected:
// Bits for the |file_bits| argument of AnyExistsAndIsInUse.
enum {
- CHROME_FRAME_DLL = 1 << 0,
- CHROME_FRAME_HELPER_EXE = 1 << 1,
- CHROME_DLL = 1 << 2,
- NUM_BINARIES = 3
+ CHROME_DLL = 1 << 0,
+ CHROME_FRAME_DLL = 1 << 1,
+ CHROME_FRAME_HELPER_DLL = 1 << 2,
+ CHROME_FRAME_HELPER_EXE = 1 << 3,
+ NUM_BINARIES = 4
};
// Returns true if |file| exists and cannot be opened for exclusive write
// access.
static bool IsFileInUse(const base::FilePath& file);
+ // Clears the instance to an uninitialized state.
+ void Clear();
+
// Returns true if any file corresponding to a bit in |file_bits| (from the
// enum above) for the currently installed version exists and is in use.
bool AnyExistsAndIsInUse(const InstallationState& machine_state,
« no previous file with comments | « chrome/installer/util/install_util.cc ('k') | chrome/installer/util/installer_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698