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

Unified Diff: chrome/browser/printing/print_preview_tab_controller.cc

Issue 7848025: Store plug-in enabled/disabled state in PluginPrefs instead of WebPluginInfo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: copyright Created 9 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/browser/plugin_prefs_unittest.cc ('k') | chrome/browser/ui/webui/plugins_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/printing/print_preview_tab_controller.cc
diff --git a/chrome/browser/printing/print_preview_tab_controller.cc b/chrome/browser/printing/print_preview_tab_controller.cc
index aeb32b906276c059805893736a6ddd6af3c22615..1557e0d9dac11bb6cecf726528cf99e14a745b8a 100644
--- a/chrome/browser/printing/print_preview_tab_controller.cc
+++ b/chrome/browser/printing/print_preview_tab_controller.cc
@@ -52,11 +52,11 @@ void EnableInternalPDFPluginForTab(TabContentsWrapper* preview_tab) {
}
}
if (internal_pdf_group) {
- std::vector<WebPluginInfo> plugins = internal_pdf_group->web_plugin_infos();
+ const std::vector<WebPluginInfo>& plugins =
+ internal_pdf_group->web_plugin_infos();
DCHECK_EQ(plugins.size(), 1U);
webkit::WebPluginInfo plugin = plugins[0];
- plugin.enabled = WebPluginInfo::USER_ENABLED;
ChromePluginServiceFilter::GetInstance()->OverridePluginForTab(
preview_tab->render_view_host()->process()->id(),
preview_tab->render_view_host()->routing_id(),
« no previous file with comments | « chrome/browser/plugin_prefs_unittest.cc ('k') | chrome/browser/ui/webui/plugins_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698