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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 2578003002: Move |GetCanonicalEncodingNameByAliasName| to base/i18n (Closed)
Patch Set: Created 4 years 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/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index fa0b7da4b035f8a8e41789f1957fe34e06ccb543..79ba09b210b6c52642282fac09a103499189bce0 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -12,6 +12,7 @@
#include "base/command_line.h"
#include "base/debug/dump_without_crashing.h"
#include "base/feature_list.h"
+#include "base/i18n/character_encoding.h"
#include "base/lazy_instance.h"
#include "base/location.h"
#include "base/logging.h"
@@ -5080,8 +5081,7 @@ void WebContentsImpl::SetEncoding(const std::string& encoding) {
return;
last_reported_encoding_ = encoding;
- canonical_encoding_ = GetContentClient()->browser()->
- GetCanonicalEncodingNameByAliasName(encoding);
+ canonical_encoding_ = base::GetCanonicalEncodingNameByAliasName(encoding);
}
bool WebContentsImpl::IsHidden() {

Powered by Google App Engine
This is Rietveld 408576698