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

Unified Diff: chrome/renderer/chrome_content_renderer_client.cc

Issue 2370923005: Implement restart-required message on Linux. (Closed)
Patch Set: 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
« no previous file with comments | « chrome/common/render_messages.h ('k') | components/component_updater/component_updater_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/chrome_content_renderer_client.cc
diff --git a/chrome/renderer/chrome_content_renderer_client.cc b/chrome/renderer/chrome_content_renderer_client.cc
index 087e254a84a411484d54be6848827332b19b7733..f817473a18690eb0693426baf6942e6791ac534c 100644
--- a/chrome/renderer/chrome_content_renderer_client.cc
+++ b/chrome/renderer/chrome_content_renderer_client.cc
@@ -31,6 +31,7 @@
#include "chrome/common/render_messages.h"
#include "chrome/common/secure_origin_whitelist.h"
#include "chrome/common/url_constants.h"
+#include "chrome/grit/chromium_strings.h"
#include "chrome/grit/generated_resources.h"
#include "chrome/grit/locale_settings.h"
#include "chrome/grit/renderer_resources.h"
@@ -873,6 +874,14 @@ WebPlugin* ChromeContentRendererClient::CreatePlugin(
identifier));
break;
}
+ case ChromeViewHostMsg_GetPluginInfo_Status::kRestartRequired: {
+ base::string16 accname_app = l10n_util::GetStringUTF16(IDS_ACCNAME_APP);
Sorin Jianu 2016/09/27 17:59:40 maybe const?
waffles 2016/09/27 22:54:19 Done.
+ placeholder = create_blocked_plugin(
+ IDR_BLOCKED_PLUGIN_HTML,
+ l10n_util::GetStringFUTF16(IDS_PLUGIN_RESTART_REQUIRED,
+ accname_app, group_name));
+ break;
+ }
}
}
placeholder->SetStatus(status);
« no previous file with comments | « chrome/common/render_messages.h ('k') | components/component_updater/component_updater_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698