summaryrefslogtreecommitdiffstats
path: root/chrome/browser/pdf_unsupported_feature.cc
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-01 16:48:17 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-01 16:48:17 +0000
commitaa1834c788f85aef89c3e39cf8258e8d2ad42281 (patch)
treeb26d28cfc982f0069fee45d4d8df4e60e519872e /chrome/browser/pdf_unsupported_feature.cc
parent25af8b0f78aa52c2484e71ae3c8ce36cf1a72051 (diff)
downloadchromium_src-aa1834c788f85aef89c3e39cf8258e8d2ad42281.zip
chromium_src-aa1834c788f85aef89c3e39cf8258e8d2ad42281.tar.gz
chromium_src-aa1834c788f85aef89c3e39cf8258e8d2ad42281.tar.bz2
Revert 99187 (speculative revert for ProfileSyncServiceSessionTest.FailModelAssociation on 10.5)
- Move infobar handling to a tab helper, part 1. BUG=94741 TEST=no visible change Review URL: http://codereview.chromium.org/7810002 TBR=avi@chromium.org Review URL: http://codereview.chromium.org/7827017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99198 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/pdf_unsupported_feature.cc')
-rw-r--r--chrome/browser/pdf_unsupported_feature.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/chrome/browser/pdf_unsupported_feature.cc b/chrome/browser/pdf_unsupported_feature.cc
index a599401..860ceec 100644
--- a/chrome/browser/pdf_unsupported_feature.cc
+++ b/chrome/browser/pdf_unsupported_feature.cc
@@ -7,7 +7,6 @@
#include "base/utf_string_conversions.h"
#include "base/values.h"
#include "base/version.h"
-#include "chrome/browser/infobars/infobar_tab_helper.h"
#include "chrome/browser/plugin_prefs.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/profiles/profile.h"
@@ -156,9 +155,9 @@ void OpenUsingReader(TabContentsWrapper* tab,
if (new_delegate) {
if (old_delegate) {
- tab->infobar_tab_helper()->ReplaceInfoBar(old_delegate, new_delegate);
+ tab->ReplaceInfoBar(old_delegate, new_delegate);
} else {
- tab->infobar_tab_helper()->AddInfoBar(new_delegate);
+ tab->AddInfoBar(new_delegate);
}
}
}
@@ -387,6 +386,5 @@ void PDFHasUnsupportedFeature(TabContentsWrapper* tab) {
}
}
- tab->infobar_tab_helper()->AddInfoBar(
- new PDFUnsupportedFeatureInfoBarDelegate(tab, reader_group));
+ tab->AddInfoBar(new PDFUnsupportedFeatureInfoBarDelegate(tab, reader_group));
}