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

Unified Diff: components/component_updater/default_component_installer.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/component_updater/default_component_installer.h
diff --git a/components/component_updater/default_component_installer.h b/components/component_updater/default_component_installer.h
index 8a39993bb970d0c6961df4b265692808cf734dbc..5815cd10410a3970ff30bd90076c1e10a51edf70 100644
--- a/components/component_updater/default_component_installer.h
+++ b/components/component_updater/default_component_installer.h
@@ -98,6 +98,7 @@ class DefaultComponentInstaller : public update_client::ComponentInstaller {
const base::FilePath& unpack_path) override;
bool GetInstalledFile(const std::string& file,
base::FilePath* installed_file) override;
+ bool Uninstall() override;
private:
~DefaultComponentInstaller() override;
@@ -109,6 +110,7 @@ class DefaultComponentInstaller : public update_client::ComponentInstaller {
void StartRegistration(ComponentUpdateService* cus);
void FinishRegistration(ComponentUpdateService* cus);
void ComponentReady(scoped_ptr<base::DictionaryValue> manifest);
+ void UninstallOnTaskRunner();
base::Version current_version_;
std::string current_fingerprint_;

Powered by Google App Engine
This is Rietveld 408576698