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

Unified Diff: chrome/browser/ui/pdf/pdf_unsupported_feature.cc

Issue 8892011: Clean up TCW, make it solely a hub for 1:1 observer/helper objects. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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/ui/login/login_prompt_browsertest.cc ('k') | chrome/browser/ui/prefs/prefs_tab_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/pdf/pdf_unsupported_feature.cc
diff --git a/chrome/browser/ui/pdf/pdf_unsupported_feature.cc b/chrome/browser/ui/pdf/pdf_unsupported_feature.cc
index 7e7082193c3a25590af49c7386bbc80718ee9940..632e14fbea928bd42057f9ccf46e15e3e1001963 100644
--- a/chrome/browser/ui/pdf/pdf_unsupported_feature.cc
+++ b/chrome/browser/ui/pdf/pdf_unsupported_feature.cc
@@ -22,6 +22,7 @@
#include "chrome/common/pref_names.h"
#include "content/browser/plugin_service.h"
#include "content/browser/renderer_host/render_view_host.h"
+#include "content/browser/tab_contents/tab_contents.h"
#include "content/browser/user_metrics.h"
#include "grit/browser_resources.h"
#include "grit/generated_resources.h"
@@ -136,11 +137,11 @@ void OpenUsingReader(TabContentsWrapper* tab,
InfoBarDelegate* old_delegate,
InfoBarDelegate* new_delegate) {
ChromePluginServiceFilter::GetInstance()->OverridePluginForTab(
- tab->render_view_host()->process()->GetID(),
- tab->render_view_host()->routing_id(),
+ tab->tab_contents()->render_view_host()->process()->GetID(),
+ tab->tab_contents()->render_view_host()->routing_id(),
tab->tab_contents()->GetURL(),
ASCIIToUTF16(PluginGroup::kAdobeReaderGroupName));
- tab->render_view_host()->ReloadFrame();
+ tab->tab_contents()->render_view_host()->ReloadFrame();
if (new_delegate) {
if (old_delegate) {
@@ -402,6 +403,6 @@ void PDFHasUnsupportedFeature(TabContentsWrapper* tab) {
PluginService::GetInstance()->GetPluginGroups(
base::Bind(&GotPluginGroupsCallback,
- tab->render_view_host()->process()->GetID(),
- tab->render_view_host()->routing_id()));
+ tab->tab_contents()->render_view_host()->process()->GetID(),
+ tab->tab_contents()->render_view_host()->routing_id()));
}
« no previous file with comments | « chrome/browser/ui/login/login_prompt_browsertest.cc ('k') | chrome/browser/ui/prefs/prefs_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698