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

Unified Diff: chrome/browser/accessibility/accessibility_extension_apitest.cc

Issue 11644059: Change infobar creation to use a public static Create() method on the infobar delegate classes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 11 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 | « no previous file | chrome/browser/alternate_nav_url_fetcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/accessibility/accessibility_extension_apitest.cc
===================================================================
--- chrome/browser/accessibility/accessibility_extension_apitest.cc (revision 175396)
+++ chrome/browser/accessibility/accessibility_extension_apitest.cc (working copy)
@@ -24,11 +24,10 @@
ASSERT_TRUE(infobar_service);
const char kAlertMessage[] = "Simple Alert Infobar.";
- infobar_service->AddInfoBar(
- new SimpleAlertInfoBarDelegate(infobar_service,
+ SimpleAlertInfoBarDelegate::Create(infobar_service,
NULL,
ASCIIToUTF16(kAlertMessage),
- false));
+ false);
CommandLine::ForCurrentProcess()->AppendSwitch(
switches::kEnableExperimentalExtensionApis);
ASSERT_TRUE(RunExtensionTest("accessibility/get_alerts_for_tab")) << message_;
« no previous file with comments | « no previous file | chrome/browser/alternate_nav_url_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698