diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-18 18:33:57 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-18 18:33:57 +0000 |
commit | 252cad6dec04039d456e716273153951d0090b5f (patch) | |
tree | 68437c27571fe3e88317f1f2848573fe647fdbb5 /chrome/common/worker_messages.h | |
parent | 371390a71a7e4530b39e46f1f52c5a6d5a3acd43 (diff) | |
download | chromium_src-252cad6dec04039d456e716273153951d0090b5f.zip chromium_src-252cad6dec04039d456e716273153951d0090b5f.tar.gz chromium_src-252cad6dec04039d456e716273153951d0090b5f.tar.bz2 |
Remove all wstrings from the IPC logging subsystem.
Changes all IPC Log methods from wstring to string. All static logging debug
data changed from wchar[] to char[].
Various string conversion/numeric headers no longer need to be included in
ipc_message_utils.h and have been removed (and added in all implementation
files that require them).
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/3159013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56563 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/worker_messages.h')
-rw-r--r-- | chrome/common/worker_messages.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/chrome/common/worker_messages.h b/chrome/common/worker_messages.h index ba2e24d..80f876f 100644 --- a/chrome/common/worker_messages.h +++ b/chrome/common/worker_messages.h @@ -67,20 +67,20 @@ struct ParamTraits<WorkerHostMsg_PostConsoleMessageToWorkerObject_Params> { ReadParam(m, iter, &p->line_number) && ReadParam(m, iter, &p->source_url); } - static void Log(const param_type& p, std::wstring* l) { - l->append(L"("); + static void Log(const param_type& p, std::string* l) { + l->append("("); LogParam(p.source_identifier, l); - l->append(L", "); + l->append(", "); LogParam(p.message_type, l); - l->append(L", "); + l->append(", "); LogParam(p.message_level, l); - l->append(L", "); + l->append(", "); LogParam(p.message, l); - l->append(L", "); + l->append(", "); LogParam(p.line_number, l); - l->append(L", "); + l->append(", "); LogParam(p.source_url, l); - l->append(L")"); + l->append(")"); } }; @@ -107,22 +107,22 @@ struct ParamTraits<WorkerProcessMsg_CreateWorker_Params> { ReadParam(m, iter, &p->creator_appcache_host_id) && ReadParam(m, iter, &p->shared_worker_appcache_id); } - static void Log(const param_type& p, std::wstring* l) { - l->append(L"("); + static void Log(const param_type& p, std::string* l) { + l->append("("); LogParam(p.url, l); - l->append(L", "); + l->append(", "); LogParam(p.is_shared, l); - l->append(L", "); + l->append(", "); LogParam(p.name, l); - l->append(L", "); + l->append(", "); LogParam(p.route_id, l); - l->append(L", "); + l->append(", "); LogParam(p.creator_process_id, l); - l->append(L", "); + l->append(", "); LogParam(p.creator_appcache_host_id, l); - l->append(L", "); + l->append(", "); LogParam(p.shared_worker_appcache_id, l); - l->append(L")"); + l->append(")"); } }; |