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

Unified Diff: content/common/font_config_ipc_linux.cc

Issue 9447084: Refactor Pickle Read methods to use higher performance PickleIterator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: jar feedback Created 8 years, 10 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: content/common/font_config_ipc_linux.cc
diff --git a/content/common/font_config_ipc_linux.cc b/content/common/font_config_ipc_linux.cc
index c7c60739c81bee13b490a6222aa1ad290fa1ed76..5f0e23f03b1027a43a651140544a8113a4f4bf12 100644
--- a/content/common/font_config_ipc_linux.cc
+++ b/content/common/font_config_ipc_linux.cc
@@ -53,7 +53,7 @@ bool FontConfigIPC::Match(std::string* result_family,
return false;
Pickle reply(reinterpret_cast<char*>(reply_buf), r);
- void* iter = NULL;
+ PickleReader iter(reply);
bool result;
if (!reply.ReadBool(&iter, &result))
return false;
@@ -98,7 +98,7 @@ int FontConfigIPC::Open(unsigned filefaceid) {
Pickle reply(reinterpret_cast<char*>(reply_buf), r);
bool result;
- void* iter = NULL;
+ PickleReader iter(reply);
if (!reply.ReadBool(&iter, &result) ||
!result) {
if (result_fd)

Powered by Google App Engine
This is Rietveld 408576698