Index: chrome/renderer/plugins/plugin_placeholder.cc |
diff --git a/chrome/renderer/plugins/plugin_placeholder.cc b/chrome/renderer/plugins/plugin_placeholder.cc |
index e46e9e463dd5bcf84ae69a8bd472d5952af924ee..d407904f43a90b32d06f67001053bd7599a567c6 100644 |
--- a/chrome/renderer/plugins/plugin_placeholder.cc |
+++ b/chrome/renderer/plugins/plugin_placeholder.cc |
@@ -557,6 +557,18 @@ void PluginPlaceholder::LoadPlugin() { |
return; |
} |
+ if (status_->value == |
+ ChromeViewHostMsg_GetPluginInfo_Status::kNpapiNotSupported) { |
+#if defined(OS_WIN) |
+ RenderThread::Get()->RecordUserMetrics("Metro_RestartOnDesktop_Plugin"); |
+ RenderThread::Get()->Send( |
cpu_(ooo_6.6-7.5)
2012/10/18 00:42:59
we need a person from sec-team to approve this.
Bernhard Bauer
2012/10/18 09:13:57
Chris, what's your opinion?
|
+ new ChromeViewHostMsg_RestartInDesktopMode(routing_id())); |
+ return; |
+#else |
+ NOTREACHED(); |
+#endif |
+ } |
+ |
// TODO(mmenke): In the case of prerendering, feed into |
// ChromeContentRendererClient::CreatePlugin instead, to |
// reduce the chance of future regressions. |