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

Side by Side Diff: chrome/browser/accessibility/accessibility_extension_apitest.cc

Issue 240193003: Move Infobars core files to the Infobars component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nib name on mac Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/strings/utf_string_conversions.h" 6 #include "base/strings/utf_string_conversions.h"
7 #include "chrome/browser/extensions/extension_apitest.h" 7 #include "chrome/browser/extensions/extension_apitest.h"
8 #include "chrome/browser/infobars/infobar_service.h" 8 #include "chrome/browser/infobars/infobar_service.h"
9 #include "chrome/browser/infobars/simple_alert_infobar_delegate.h" 9 #include "chrome/browser/infobars/simple_alert_infobar_delegate.h"
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
(...skipping 16 matching lines...) Expand all
27 27
28 content::WebContents* web_contents = 28 content::WebContents* web_contents =
29 browser()->tab_strip_model()->GetActiveWebContents(); 29 browser()->tab_strip_model()->GetActiveWebContents();
30 ASSERT_TRUE(web_contents); 30 ASSERT_TRUE(web_contents);
31 InfoBarService* infobar_service = 31 InfoBarService* infobar_service =
32 InfoBarService::FromWebContents(web_contents); 32 InfoBarService::FromWebContents(web_contents);
33 ASSERT_TRUE(infobar_service); 33 ASSERT_TRUE(infobar_service);
34 34
35 const char kAlertMessage[] = "Simple Alert Infobar."; 35 const char kAlertMessage[] = "Simple Alert Infobar.";
36 SimpleAlertInfoBarDelegate::Create(infobar_service, 36 SimpleAlertInfoBarDelegate::Create(infobar_service,
37 InfoBarDelegate::kNoIconID, 37 infobars::InfoBarDelegate::kNoIconID,
38 base::ASCIIToUTF16(kAlertMessage), false); 38 base::ASCIIToUTF16(kAlertMessage), false);
39 CommandLine::ForCurrentProcess()->AppendSwitch( 39 CommandLine::ForCurrentProcess()->AppendSwitch(
40 extensions::switches::kEnableExperimentalExtensionApis); 40 extensions::switches::kEnableExperimentalExtensionApis);
41 ASSERT_TRUE(RunComponentExtensionTest("accessibility/get_alerts_for_tab")) 41 ASSERT_TRUE(RunComponentExtensionTest("accessibility/get_alerts_for_tab"))
42 << message_; 42 << message_;
43 } 43 }
OLDNEW
« no previous file with comments | « chrome/browser/accessibility/accessibility_extension_api.cc ('k') | chrome/browser/android/tab_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698