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

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

Issue 5429002: Support for checking multiple keyfiles when removing an installation package.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 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/setup/setup_main.cc ('k') | chrome/installer/util/browser_distribution.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/browser_distribution.h
===================================================================
--- chrome/installer/util/browser_distribution.h (revision 67902)
+++ chrome/installer/util/browser_distribution.h (working copy)
@@ -8,13 +8,15 @@
#define CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_
#pragma once
+#include <string>
+
#include "base/basictypes.h"
#include "base/file_path.h"
#include "chrome/installer/util/util_constants.h"
#include "chrome/installer/util/version.h"
#if defined(OS_WIN)
-#include <windows.h>
+#include <windows.h> // NOLINT
#endif
namespace installer {
@@ -103,6 +105,16 @@
virtual void InactiveUserToastExperiment(int flavor,
const installer::Product& installation);
+ // A key-file is a file such as a DLL on Windows that is expected to be
+ // in use when the product is being used. For example "chrome.dll" for
+ // Chrome. Before attempting to delete an installation directory during
+ // an uninstallation, the uninstaller will check if any one of a potential
+ // set of key files is in use and if they are, abort the delete operation.
+ // Only if none of the key files are in use, can the folder be deleted.
+ // Note that this function does not return a full path to the key file,
+ // only a file name.
+ virtual FilePath::StringType GetKeyFile();
+
protected:
BrowserDistribution() : type_(CHROME_BROWSER) {}
« no previous file with comments | « chrome/installer/setup/setup_main.cc ('k') | chrome/installer/util/browser_distribution.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698