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

Unified Diff: chrome/browser/plugins/plugin_info_message_filter.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 | « chrome/app/google_chrome_strings.grd ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/plugins/plugin_info_message_filter.cc
diff --git a/chrome/browser/plugins/plugin_info_message_filter.cc b/chrome/browser/plugins/plugin_info_message_filter.cc
index c1043375281defa789561245fa3d9432502ae97b..31817cd8b907a06960a2d7f3716a976d66dc3e22 100644
--- a/chrome/browser/plugins/plugin_info_message_filter.cc
+++ b/chrome/browser/plugins/plugin_info_message_filter.cc
@@ -471,6 +471,12 @@ void PluginInfoMessageFilter::ComponentPluginLookupDone(
if (cus_plugin_info) {
output->status =
ChromeViewHostMsg_GetPluginInfo_Status::kComponentUpdateRequired;
+#if defined(OS_LINUX)
+ if (cus_plugin_info->version != base::Version("0")) {
+ output->status =
+ ChromeViewHostMsg_GetPluginInfo_Status::kRestartRequired;
+ }
+#endif // defined(OS_LINUX)
plugin_metadata.reset(new PluginMetadata(
cus_plugin_info->id, cus_plugin_info->name, false, GURL(), GURL(),
base::ASCIIToUTF16(cus_plugin_info->id), std::string()));
« no previous file with comments | « chrome/app/google_chrome_strings.grd ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698