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

Unified Diff: content/browser/tab_contents/tab_contents.cc

Issue 8475024: Changed argument to GetAcceptLangs() to a BrowserContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
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())

Powered by Google App Engine
This is Rietveld 408576698