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

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: compile (racing with incoming CLs) Created 8 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 | « content/common/clipboard_messages.cc ('k') | content/common/indexed_db/indexed_db_param_traits.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..13ea2296eba7c08e57469c12ea70ef59c1e36b62 100644
--- a/content/common/font_config_ipc_linux.cc
+++ b/content/common/font_config_ipc_linux.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -53,7 +53,7 @@ bool FontConfigIPC::Match(std::string* result_family,
return false;
Pickle reply(reinterpret_cast<char*>(reply_buf), r);
- void* iter = NULL;
+ PickleIterator 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;
+ PickleIterator iter(reply);
if (!reply.ReadBool(&iter, &result) ||
!result) {
if (result_fd)
« no previous file with comments | « content/common/clipboard_messages.cc ('k') | content/common/indexed_db/indexed_db_param_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698