Index: content/browser/tab_contents/tab_contents.cc |
diff --git a/content/browser/tab_contents/tab_contents.cc b/content/browser/tab_contents/tab_contents.cc |
index 34d068d9764c8227b69c35f53aa5f74a19a966f4..2fefc602381b39a569a89dc048963761e8a8c65a 100644 |
--- a/content/browser/tab_contents/tab_contents.cc |
+++ b/content/browser/tab_contents/tab_contents.cc |
@@ -345,7 +345,8 @@ const string16& TabContents::GetTitle() const { |
// that are shown on top of existing pages. |
NavigationEntry* entry = controller_.GetTransientEntry(); |
std::string accept_languages = |
- content::GetContentClient()->browser()->GetAcceptLangs(this); |
+ content::GetContentClient()->browser()->GetAcceptLangs( |
+ this->browser_context()); |
if (entry) { |
return entry->GetTitleForDisplay(accept_languages); |
} |
@@ -1768,7 +1769,8 @@ void TabContents::RunJavaScriptMessage( |
title_type = content::JavaScriptDialogCreator::DIALOG_TITLE_FORMATTED_URL; |
title = net::FormatUrl( |
frame_url.GetOrigin(), |
- content::GetContentClient()->browser()->GetAcceptLangs(this)); |
+ content::GetContentClient()->browser()->GetAcceptLangs( |
+ this->browser_context())); |
} |
dialog_creator_ = delegate_->GetJavaScriptDialogCreator(); |
@@ -1904,7 +1906,8 @@ void TabContents::LoadStateChanged(const GURL& url, |
upload_position_ = upload_position; |
upload_size_ = upload_size; |
load_state_host_ = net::IDNToUnicode(url.host(), |
- content::GetContentClient()->browser()->GetAcceptLangs(this)); |
+ content::GetContentClient()->browser()->GetAcceptLangs( |
+ this->browser_context())); |
if (load_state_.state == net::LOAD_STATE_READING_RESPONSE) |
SetNotWaitingForResponse(); |
if (IsLoading()) |