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

Unified Diff: chrome_frame/simple_resource_loader.cc

Issue 7890060: This broke lots of layout tests on OSX. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 3 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
« no previous file with comments | « chrome/browser/themes/browser_theme_pack.cc ('k') | tools/data_pack/data_pack.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/simple_resource_loader.cc
===================================================================
--- chrome_frame/simple_resource_loader.cc (revision 101223)
+++ chrome_frame/simple_resource_loader.cc (working copy)
@@ -241,14 +241,10 @@
return std::wstring();
}
- // Data pack encodes strings as either UTF8 or UTF16.
- string16 msg;
- if (data_pack_->GetTextEncodingType() == ui::DataPack::UTF16) {
- msg = string16(reinterpret_cast<const char16*>(data.data()),
- data.length() / 2);
- } else if (data_pack_->GetTextEncodingType() == ui::DataPack::UTF8) {
- msg = UTF8ToUTF16(data);
- }
+ // Data pack encodes strings as UTF16.
+ DCHECK_EQ(data.length() % 2, 0U);
+ string16 msg(reinterpret_cast<const char16*>(data.data()),
+ data.length() / 2);
return msg;
}
« no previous file with comments | « chrome/browser/themes/browser_theme_pack.cc ('k') | tools/data_pack/data_pack.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698