| 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 e920f9899436b5ee892ce8785f49cbdcd4b0d144..68e71019b3ee0b450b4aa1976be63f9f7b7b66f5 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);
|
| }
|
| @@ -1754,7 +1755,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();
|
| @@ -1890,7 +1892,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())
|
|
|