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

Unified Diff: content/browser/download/download_item.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
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | content/browser/download/save_package.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/download_item.cc
diff --git a/content/browser/download/download_item.cc b/content/browser/download/download_item.cc
index b8dfbd1969491e844918d6727dad197abbc1f199..a20f7246f8bcc101a4b5a2dd43231e2a4f2d19bc 100644
--- a/content/browser/download/download_item.cc
+++ b/content/browser/download/download_item.cc
@@ -645,7 +645,8 @@ bool DownloadItem::MatchesQuery(const string16& query) const {
std::string languages;
TabContents* tab = request_handle_->GetTabContents();
if (tab)
jam 2011/11/07 16:56:39 nit: add brace brackets now
- languages = content::GetContentClient()->browser()->GetAcceptLangs(tab);
+ languages = content::GetContentClient()->browser()->GetAcceptLangs(
+ tab->browser_context());
string16 url_formatted(net::FormatUrl(GetURL(), languages));
if (base::i18n::StringSearchIgnoringCaseAndAccents(query, url_formatted))
return true;
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | content/browser/download/save_package.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698