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

Unified Diff: trunk/src/ui/base/resource/data_pack.cc

Issue 189793002: Revert 255397 "Fill out the rest of the StringPiece functions fo..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 9 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 | « trunk/src/net/websockets/websocket_basic_handshake_stream.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/ui/base/resource/data_pack.cc
===================================================================
--- trunk/src/ui/base/resource/data_pack.cc (revision 255491)
+++ trunk/src/ui/base/resource/data_pack.cc (working copy)
@@ -190,8 +190,7 @@
const DataPackEntry* next_entry = target + 1;
size_t length = next_entry->file_offset - target->file_offset;
- data->set(reinterpret_cast<const char*>(mmap_->data() + target->file_offset),
- length);
+ data->set(mmap_->data() + target->file_offset, length);
return true;
}
« no previous file with comments | « trunk/src/net/websockets/websocket_basic_handshake_stream.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698