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

Unified Diff: chrome/browser/pdf_unsupported_feature.cc

Issue 7810002: Move infobar handling to a tab helper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 9 years, 4 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/password_manager_delegate_impl.cc ('k') | chrome/browser/plugin_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/pdf_unsupported_feature.cc
diff --git a/chrome/browser/pdf_unsupported_feature.cc b/chrome/browser/pdf_unsupported_feature.cc
index 860ceec1c40efbfa085ba36695ddc4c7e832b5aa..a599401c0d044194d059ab2d2cc045199f9b1abe 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));
}
« no previous file with comments | « chrome/browser/password_manager_delegate_impl.cc ('k') | chrome/browser/plugin_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698