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

Unified Diff: components/component_updater/component_updater_service.cc

Issue 2370923005: Implement restart-required message on Linux. (Closed)
Patch Set: Through #22 & sync Created 4 years, 2 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
« no previous file with comments | « components/component_updater/component_updater_service.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/component_updater/component_updater_service.cc
diff --git a/components/component_updater/component_updater_service.cc b/components/component_updater/component_updater_service.cc
index 33680d13eb614486ae0ca9c48808b721b7ce2e00..d3239f780071028b586719d49680eb9894ce0f79 100644
--- a/components/component_updater/component_updater_service.cc
+++ b/components/component_updater/component_updater_service.cc
@@ -55,8 +55,9 @@ const char kRecoveryComponentId[] = "npdjjkjlcidkjlamlmmdelcjbcpdjocm";
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 @@ std::unique_ptr<ComponentInfo> CrxUpdateService::GetComponentForMimeType(
if (!component)
return nullptr;
return base::MakeUnique<ComponentInfo>(GetCrxComponentID(*component),
- base::UTF8ToUTF16(component->name));
+ base::UTF8ToUTF16(component->name),
+ component->version);
}
OnDemandUpdater& CrxUpdateService::GetOnDemandUpdater() {
« no previous file with comments | « components/component_updater/component_updater_service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698