Implement restart-required message on Linux.
When a plugin (Flash) can't be found in the registered plugins list, but
the component updater says it knows about and has an implementation of
that plugin, give a "restart required" message on Linux.
If the plugin is disabled because it is out of date, this flow is not
triggered - the browser instead displays "Couldn't load plugin". (This
existing behavior is not modified by this changelist.)
BUG=641611
Review-Url: https://codereview.chromium.org/2370923005
Cr-Commit-Position: refs/heads/master@{#424288}
diff --git a/components/component_updater/component_updater_service.cc b/components/component_updater/component_updater_service.cc
index 33680d1..d3239f78 100644
--- a/components/component_updater/component_updater_service.cc
+++ b/components/component_updater/component_updater_service.cc
@@ -55,8 +55,9 @@
namespace component_updater {
-ComponentInfo::ComponentInfo(const std::string& id, const base::string16& name)
- : id(id), name(name) {}
+ComponentInfo::ComponentInfo(const std::string& id, const base::string16& name,
+ const base::Version& version)
+ : id(id), name(name), version(version) {}
ComponentInfo::~ComponentInfo() {}
CrxUpdateService::CrxUpdateService(
@@ -207,7 +208,8 @@
if (!component)
return nullptr;
return base::MakeUnique<ComponentInfo>(GetCrxComponentID(*component),
- base::UTF8ToUTF16(component->name));
+ base::UTF8ToUTF16(component->name),
+ component->version);
}
OnDemandUpdater& CrxUpdateService::GetOnDemandUpdater() {