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

Unified Diff: chrome/browser/ui/startup/session_crashed_prompt.cc

Issue 10830353: Introduce InfoBarTabService API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments Created 8 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/startup/session_crashed_prompt.cc
diff --git a/chrome/browser/ui/startup/session_crashed_prompt.cc b/chrome/browser/ui/startup/session_crashed_prompt.cc
index 855e4d9f29540b2b8614a84df40dd369d9c62297..6cf0620354e951d202e35182ea3b4d1c3a80a265 100644
--- a/chrome/browser/ui/startup/session_crashed_prompt.cc
+++ b/chrome/browser/ui/startup/session_crashed_prompt.cc
@@ -59,7 +59,7 @@ SessionCrashedInfoBarDelegate::SessionCrashedInfoBarDelegate(
: ConfirmInfoBarDelegate(infobar_helper),
accepted_(false),
removed_notification_received_(false),
- browser_(browser::FindBrowserWithWebContents(owner()->web_contents())) {
+ browser_(browser::FindBrowserWithWebContents(owner()->GetWebContents())) {
// TODO(pkasting,marja): Once InfoBars own they delegates, this is not needed
// any more. Then we can rely on delegates getting destroyed, and we can
// initiate the session storage scavenging only in the destructor. (Currently,
@@ -143,7 +143,7 @@ void ShowSessionCrashedPrompt(Browser* browser) {
return;
// Don't show the info-bar if there are already info-bars showing.
- if (tab->infobar_tab_helper()->infobar_count() > 0)
+ if (tab->infobar_tab_helper()->GetInfoBarCount() > 0)
return;
tab->infobar_tab_helper()->AddInfoBar(

Powered by Google App Engine
This is Rietveld 408576698