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

Unified Diff: chrome/browser/media/media_stream_capture_indicator.cc

Issue 1841653003: Drop |languages| from {Format,Elide}Url* and IDNToUnicode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo in elide_url.cc Created 4 years, 8 months 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: chrome/browser/media/media_stream_capture_indicator.cc
diff --git a/chrome/browser/media/media_stream_capture_indicator.cc b/chrome/browser/media/media_stream_capture_indicator.cc
index 828dce285af85c87caf961e4aa8cf0fd7bf9c6ac..65771d5b83ab5bd1ad333e4b4de56a8b53432925 100644
--- a/chrome/browser/media/media_stream_capture_indicator.cc
+++ b/chrome/browser/media/media_stream_capture_indicator.cc
@@ -14,13 +14,10 @@
#include "base/strings/utf_string_conversions.h"
#include "chrome/app/chrome_command_ids.h"
#include "chrome/browser/browser_process.h"
-#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/status_icons/status_icon.h"
#include "chrome/browser/status_icons/status_tray.h"
#include "chrome/browser/tab_contents/tab_util.h"
-#include "chrome/common/pref_names.h"
#include "chrome/grit/chromium_strings.h"
-#include "components/prefs/pref_service.h"
#include "components/url_formatter/elide_url.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/content_browser_client.h"
@@ -84,12 +81,7 @@ base::string16 GetTitle(WebContents* web_contents) {
return base::UTF8ToUTF16(extension->name());
#endif
- Profile* profile =
- Profile::FromBrowserContext(web_contents->GetBrowserContext());
- std::string languages =
- profile->GetPrefs()->GetString(prefs::kAcceptLanguages);
- return url_formatter::FormatUrlForSecurityDisplay(web_contents->GetURL(),
- languages);
+ return url_formatter::FormatUrlForSecurityDisplay(web_contents->GetURL());
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698