| Index: chrome/browser/ui/browser_browsertest.cc
|
| diff --git a/chrome/browser/ui/browser_browsertest.cc b/chrome/browser/ui/browser_browsertest.cc
|
| index 1afb3c46eb6dbbc3ddd78c4f8cf636daa42c47c5..c614f7fad3f18d6df36fa86418f583a1d0c82af4 100644
|
| --- a/chrome/browser/ui/browser_browsertest.cc
|
| +++ b/chrome/browser/ui/browser_browsertest.cc
|
| @@ -156,9 +156,8 @@ const base::FilePath::CharType kDocRoot[] =
|
|
|
| // Given a page title, returns the expected window caption string.
|
| base::string16 WindowCaptionFromPageTitle(const base::string16& page_title) {
|
| -#if defined(OS_MACOSX) || defined(OS_CHROMEOS)
|
| - // On Mac or ChromeOS, we don't want to suffix the page title with
|
| - // the application name.
|
| +#if defined(OS_MACOSX)
|
| + // On Mac, we don't want to suffix the page title with the application name.
|
| if (page_title.empty())
|
| return l10n_util::GetStringUTF16(IDS_BROWSER_WINDOW_MAC_TAB_UNTITLED);
|
| return page_title;
|
| @@ -377,7 +376,7 @@ IN_PROC_BROWSER_TEST_F(BrowserTest, NoTitle) {
|
| base::FilePath(base::FilePath::kCurrentDirectory),
|
| base::FilePath(kTitle1File)));
|
| EXPECT_EQ(LocaleWindowCaptionFromPageTitle(ASCIIToUTF16("title1.html")),
|
| - browser()->GetWindowTitleForCurrentTab());
|
| + browser()->GetWindowTitleForCurrentTab(false /* accessible */));
|
| base::string16 tab_title;
|
| ASSERT_TRUE(ui_test_utils::GetCurrentTabTitle(browser(), &tab_title));
|
| EXPECT_EQ(ASCIIToUTF16("title1.html"), tab_title);
|
| @@ -436,7 +435,7 @@ IN_PROC_BROWSER_TEST_F(BrowserTest, Title) {
|
| base::FilePath(kTitle2File)));
|
| const base::string16 test_title(ASCIIToUTF16("Title Of Awesomeness"));
|
| EXPECT_EQ(LocaleWindowCaptionFromPageTitle(test_title),
|
| - browser()->GetWindowTitleForCurrentTab());
|
| + browser()->GetWindowTitleForCurrentTab(false /* accessible */));
|
| base::string16 tab_title;
|
| ASSERT_TRUE(ui_test_utils::GetCurrentTabTitle(browser(), &tab_title));
|
| EXPECT_EQ(test_title, tab_title);
|
|
|