diff options
author | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-01 15:24:08 +0000 |
---|---|---|
committer | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-01 15:24:08 +0000 |
commit | 2f93641aca552e88c4810924fe2135b626707b45 (patch) | |
tree | 26b29b0da55fb33174def9948f0bbdb859161edd /chrome/browser/pdf_unsupported_feature.cc | |
parent | 678e68ab1a5fa99f07634cce9ac22a6d700436df (diff) | |
download | chromium_src-2f93641aca552e88c4810924fe2135b626707b45.zip chromium_src-2f93641aca552e88c4810924fe2135b626707b45.tar.gz chromium_src-2f93641aca552e88c4810924fe2135b626707b45.tar.bz2 |
Move infobar handling to a tab helper, part 1.
BUG=94741
TEST=no visible change
Review URL: http://codereview.chromium.org/7810002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99187 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/pdf_unsupported_feature.cc')
-rw-r--r-- | chrome/browser/pdf_unsupported_feature.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/chrome/browser/pdf_unsupported_feature.cc b/chrome/browser/pdf_unsupported_feature.cc index 860ceec..a599401 100644 --- a/chrome/browser/pdf_unsupported_feature.cc +++ b/chrome/browser/pdf_unsupported_feature.cc @@ -7,6 +7,7 @@ #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" @@ -155,9 +156,9 @@ void OpenUsingReader(TabContentsWrapper* tab, if (new_delegate) { if (old_delegate) { - tab->ReplaceInfoBar(old_delegate, new_delegate); + tab->infobar_tab_helper()->ReplaceInfoBar(old_delegate, new_delegate); } else { - tab->AddInfoBar(new_delegate); + tab->infobar_tab_helper()->AddInfoBar(new_delegate); } } } @@ -386,5 +387,6 @@ void PDFHasUnsupportedFeature(TabContentsWrapper* tab) { } } - tab->AddInfoBar(new PDFUnsupportedFeatureInfoBarDelegate(tab, reader_group)); + tab->infobar_tab_helper()->AddInfoBar( + new PDFUnsupportedFeatureInfoBarDelegate(tab, reader_group)); } |