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

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, merge to LKGR 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 fa75e048279ec3281e63a4e04cee826dff15614e..ef6b95ada3950f036ffbd2c254258be6617b142a 100644
--- a/chrome/browser/ui/startup/session_crashed_prompt.cc
+++ b/chrome/browser/ui/startup/session_crashed_prompt.cc
@@ -60,7 +60,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,
@@ -144,7 +144,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(
« no previous file with comments | « chrome/browser/ui/startup/obsolete_os_info_bar.cc ('k') | chrome/browser/ui/startup/startup_browser_creator_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698