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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 10823086: Make plugins work in a RenderViewTest (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated according to jam@ Created 8 years, 5 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: content/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index 0c8b2efd5fa2187a0852084aefd7a88f6f629318..0be789fa2921f9a5e17af98cbf080147fa725af5 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -214,7 +214,6 @@ void RenderThreadImpl::Init() {
// In single process the single process is all there is.
suspend_webkit_shared_timer_ = true;
notify_webkit_of_modal_loop_ = true;
- plugin_refresh_allowed_ = true;
widget_count_ = 0;
hidden_widget_count_ = 0;
idle_notification_delay_in_ms_ = kInitialIdleHandlerDelayMs;
@@ -1036,9 +1035,9 @@ void RenderThreadImpl::OnPurgePluginListCache(bool reload_pages) {
// point we already know that the browser has refreshed its list, so disable
// refresh temporarily to prevent each renderer process causing the list to be
// regenerated.
- plugin_refresh_allowed_ = false;
+ webkit_platform_support_->set_plugin_refresh_allowed(false);
WebKit::resetPluginCache(reload_pages);
- plugin_refresh_allowed_ = true;
+ webkit_platform_support_->set_plugin_refresh_allowed(true);
FOR_EACH_OBSERVER(RenderProcessObserver, observers_, PluginListChanged());
}

Powered by Google App Engine
This is Rietveld 408576698