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

Unified Diff: chrome/browser/ui/shell_dialogs.cc

Issue 7810002: Move infobar handling to a tab helper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update 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
Index: chrome/browser/ui/shell_dialogs.cc
diff --git a/chrome/browser/ui/shell_dialogs.cc b/chrome/browser/ui/shell_dialogs.cc
index 603c75f68e09387c4e6624ba188e135092a8cc29..13fddd9370a8db4f9c818eb59601d7c1e1b06873 100644
--- a/chrome/browser/ui/shell_dialogs.cc
+++ b/chrome/browser/ui/shell_dialogs.cc
@@ -7,6 +7,7 @@
#include "base/logging.h"
#include "base/message_loop.h"
#include "chrome/browser/browser_process.h"
+#include "chrome/browser/infobars/infobar_tab_helper.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/tab_contents/simple_alert_infobar_delegate.h"
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
@@ -54,7 +55,7 @@ void SelectFileDialog::SelectFile(Type type,
if (source_contents) {
TabContentsWrapper* wrapper =
Peter Kasting 2011/08/31 18:47:32 Nit: Combine these two lines
TabContentsWrapper::GetCurrentWrapperForContents(source_contents);
- wrapper->AddInfoBar(new SimpleAlertInfoBarDelegate(
+ wrapper->infobar_tab_helper()->AddInfoBar(new SimpleAlertInfoBarDelegate(
source_contents,
NULL,
l10n_util::GetStringUTF16(IDS_FILE_SELECTION_DIALOG_INFOBAR),

Powered by Google App Engine
This is Rietveld 408576698