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

Unified Diff: components/plugins/renderer/loadable_plugin_placeholder.cc

Issue 2344023002: Delete ReplayReceivedData, make WebViewPlugin not a WebFrameClient (Closed)
Patch Set: PluginWebFrameClient::plugin_ should be private 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 | « no previous file | components/plugins/renderer/webview_plugin.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/plugins/renderer/loadable_plugin_placeholder.cc
diff --git a/components/plugins/renderer/loadable_plugin_placeholder.cc b/components/plugins/renderer/loadable_plugin_placeholder.cc
index d0263d3e5b6d03ae2208a43dfcfb23721af3a640..9bc0478ac0ef13f76b2cb3a9fb548a52a113ab15 100644
--- a/components/plugins/renderer/loadable_plugin_placeholder.cc
+++ b/components/plugins/renderer/loadable_plugin_placeholder.cc
@@ -127,10 +127,11 @@ void LoadablePluginPlaceholder::ReplacePlugin(blink::WebPlugin* new_plugin) {
// this point.
new_plugin = container->plugin();
- plugin()->RestoreTitleText();
container->invalidate();
container->reportGeometry();
- plugin()->ReplayReceivedData(new_plugin);
+ if (plugin()->focused())
+ new_plugin->updateFocus(true, blink::WebFocusTypeNone);
+ container->element().setAttribute("title", plugin()->old_title());
plugin()->destroy();
}
« no previous file with comments | « no previous file | components/plugins/renderer/webview_plugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698