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

Unified Diff: chrome/browser/plugins/plugin_info_message_filter.cc

Issue 2370923005: Implement restart-required message on Linux. (Closed)
Patch Set: Through #11 & sync Created 4 years, 3 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: 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 b1ea5b4190e5a48fe46a6b25175f27e3b463d0c3..cdaad2c55165c9b4e9a82285fdcbf825dc1e5ff8 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()));

Powered by Google App Engine
This is Rietveld 408576698