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

Unified Diff: components/update_client/update_client.h

Issue 879993005: Add support for uninstalling components and use it in SupervisedUserWhitelistInstaller. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: fix Created 5 years, 10 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: components/update_client/update_client.h
diff --git a/components/update_client/update_client.h b/components/update_client/update_client.h
index 28b69c03f6f695d5b5cf0061a66237e101f2c61a..35b3cca3429ba2d94edd2dd9281356a9c79ad1c4 100644
--- a/components/update_client/update_client.h
+++ b/components/update_client/update_client.h
@@ -45,6 +45,11 @@ class ComponentInstaller
virtual bool GetInstalledFile(const std::string& file,
base::FilePath* installed_file) = 0;
+ // Called by the component updater when a component has been unregistered and
+ // all versions should be uninstalled from disk. Returns true if
+ // uninstallation is supported, false otherwise.
+ virtual bool Uninstall() = 0;
+
protected:
friend class base::RefCountedThreadSafe<ComponentInstaller>;

Powered by Google App Engine
This is Rietveld 408576698