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

Side by Side Diff: base/trace_event.cc

Issue 243102: Convert base dependencies to use sys_string_conversions instead of the ICU... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/third_party/icu/icu_utf.cc ('k') | base/utf_string_conversions.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/trace_event.h" 5 #include "base/trace_event.h"
6 6
7 #include "base/format_macros.h" 7 #include "base/format_macros.h"
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
11 #include "base/platform_thread.h" 11 #include "base/platform_thread.h"
12 #include "base/process_util.h" 12 #include "base/process_util.h"
13 #include "base/string_util.h" 13 #include "base/string_util.h"
14 #include "base/utf_string_conversions.h"
14 #include "base/time.h" 15 #include "base/time.h"
15 16
16 #define USE_UNRELIABLE_NOW 17 #define USE_UNRELIABLE_NOW
17 18
18 namespace base { 19 namespace base {
19 20
20 static const char* kEventTypeNames[] = { 21 static const char* kEventTypeNames[] = {
21 "BEGIN", 22 "BEGIN",
22 "END", 23 "END",
23 "INSTANT" 24 "INSTANT"
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 Log(msg); 148 Log(msg);
148 } 149 }
149 150
150 void TraceLog::Log(const std::string& msg) { 151 void TraceLog::Log(const std::string& msg) {
151 AutoLock lock(file_lock_); 152 AutoLock lock(file_lock_);
152 153
153 fprintf(log_file_, "%s", msg.c_str()); 154 fprintf(log_file_, "%s", msg.c_str());
154 } 155 }
155 156
156 } // namespace base 157 } // namespace base
OLDNEW
« no previous file with comments | « base/third_party/icu/icu_utf.cc ('k') | base/utf_string_conversions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698