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

Unified Diff: trunk/src/chrome/browser/ui/startup/session_crashed_infobar_delegate_unittest.cc

Issue 102163002: Revert 238283 "Infobar system refactor." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years 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: trunk/src/chrome/browser/ui/startup/session_crashed_infobar_delegate_unittest.cc
===================================================================
--- trunk/src/chrome/browser/ui/startup/session_crashed_infobar_delegate_unittest.cc (revision 238401)
+++ trunk/src/chrome/browser/ui/startup/session_crashed_infobar_delegate_unittest.cc (working copy)
@@ -7,7 +7,6 @@
#include "base/prefs/pref_registry_simple.h"
#include "base/prefs/testing_pref_service.h"
#include "base/run_loop.h"
-#include "chrome/browser/infobars/infobar.h"
#include "chrome/browser/infobars/infobar_service.h"
#include "chrome/browser/sessions/session_service_factory.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
@@ -62,8 +61,8 @@
InfoBarService* infobar_service =
InfoBarService::FromWebContents(web_contents);
EXPECT_EQ(1U, infobar_service->infobar_count());
- ConfirmInfoBarDelegate* infobar =
- infobar_service->infobar_at(0)->delegate()->AsConfirmInfoBarDelegate();
+ scoped_ptr<ConfirmInfoBarDelegate> infobar(InfoBarService::FromWebContents(
+ web_contents)->infobar_at(0)->AsConfirmInfoBarDelegate());
ASSERT_TRUE(infobar);
// Open another browser.

Powered by Google App Engine
This is Rietveld 408576698