Index: content/browser/web_contents/navigation_entry_impl_unittest.cc |
diff --git a/content/browser/web_contents/navigation_entry_impl_unittest.cc b/content/browser/web_contents/navigation_entry_impl_unittest.cc |
index 00857ed329fbd123a859e34e9bce92a4a500541f..8bc5de11ed23870cefdf826348486963c1de3012 100644 |
--- a/content/browser/web_contents/navigation_entry_impl_unittest.cc |
+++ b/content/browser/web_contents/navigation_entry_impl_unittest.cc |
@@ -61,23 +61,23 @@ TEST_F(NavigationEntryTest, NavigationEntryURLs) { |
EXPECT_EQ(GURL(), entry1_->GetURL()); |
EXPECT_EQ(GURL(), entry1_->GetVirtualURL()); |
- EXPECT_TRUE(entry1_->GetTitleForDisplay("").empty()); |
+ EXPECT_TRUE(entry1_->GetTitleForDisplay(std::string()).empty()); |
// Setting URL affects virtual_url and GetTitleForDisplay |
entry1_->SetURL(GURL("http://www.google.com")); |
EXPECT_EQ(GURL("http://www.google.com"), entry1_->GetURL()); |
EXPECT_EQ(GURL("http://www.google.com"), entry1_->GetVirtualURL()); |
EXPECT_EQ(ASCIIToUTF16("www.google.com"), |
- entry1_->GetTitleForDisplay("")); |
+ entry1_->GetTitleForDisplay(std::string())); |
// file:/// URLs should only show the filename. |
entry1_->SetURL(GURL("file:///foo/bar baz.txt")); |
EXPECT_EQ(ASCIIToUTF16("bar baz.txt"), |
- entry1_->GetTitleForDisplay("")); |
+ entry1_->GetTitleForDisplay(std::string())); |
// Title affects GetTitleForDisplay |
entry1_->SetTitle(ASCIIToUTF16("Google")); |
- EXPECT_EQ(ASCIIToUTF16("Google"), entry1_->GetTitleForDisplay("")); |
+ EXPECT_EQ(ASCIIToUTF16("Google"), entry1_->GetTitleForDisplay(std::string())); |
// Setting virtual_url doesn't affect URL |
entry2_->SetVirtualURL(GURL("display:url")); |
@@ -86,7 +86,7 @@ TEST_F(NavigationEntryTest, NavigationEntryURLs) { |
EXPECT_EQ(GURL("display:url"), entry2_->GetVirtualURL()); |
// Having a title set in constructor overrides virtual URL |
- EXPECT_EQ(ASCIIToUTF16("title"), entry2_->GetTitleForDisplay("")); |
+ EXPECT_EQ(ASCIIToUTF16("title"), entry2_->GetTitleForDisplay(std::string())); |
// User typed URL is independent of the others |
EXPECT_EQ(GURL(), entry1_->GetUserTypedURL()); |