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

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: Merged to LKGR. 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
« no previous file with comments | « content/browser/mock_content_browser_client.cc ('k') | content/public/browser/content_browser_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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())
« no previous file with comments | « content/browser/mock_content_browser_client.cc ('k') | content/public/browser/content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698