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

Unified Diff: chrome/browser/pdf_unsupported_feature.cc

Issue 7387010: Add PluginServiceFilter interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add resource_context Created 9 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: chrome/browser/pdf_unsupported_feature.cc
diff --git a/chrome/browser/pdf_unsupported_feature.cc b/chrome/browser/pdf_unsupported_feature.cc
index 91127652c10b84bbd56d15014b3f7f26ef9f5ffe..8569f9c4a0e637ee9066169b5d4abdbfab65d9ab 100644
--- a/chrome/browser/pdf_unsupported_feature.cc
+++ b/chrome/browser/pdf_unsupported_feature.cc
@@ -8,6 +8,7 @@
#include "base/values.h"
#include "base/version.h"
#include "chrome/browser/plugin_updater.h"
+#include "chrome/browser/chrome_plugin_service_helper.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/tab_contents/chrome_interstitial_page.h"
@@ -137,7 +138,7 @@ void OpenUsingReader(TabContentsWrapper* tab,
const WebPluginInfo& reader_plugin,
InfoBarDelegate* old_delegate,
InfoBarDelegate* new_delegate) {
- PluginService::OverriddenPlugin plugin;
+ ChromePluginServiceHelper::OverriddenPlugin plugin;
plugin.render_process_id = tab->render_view_host()->process()->id();
plugin.render_view_id = tab->render_view_host()->routing_id();
plugin.url = tab->tab_contents()->GetURL();
@@ -149,7 +150,7 @@ void OpenUsingReader(TabContentsWrapper* tab,
plugin.plugin.enabled = WebPluginInfo::USER_ENABLED;
plugin.plugin.version = ASCIIToUTF16("11.0.0.0");
- PluginService::GetInstance()->OverridePluginForTab(plugin);
+ ChromePluginServiceHelper::GetInstance()->OverridePluginForTab(plugin);
tab->render_view_host()->Send(new ViewMsg_ReloadFrame(
tab->render_view_host()->routing_id()));

Powered by Google App Engine
This is Rietveld 408576698