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

Side by Side Diff: components/tracing/trace_config_file.cc

Issue 1549993003: Switch to standard integer types in components/, part 4 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
« no previous file with comments | « components/tracing/trace_config_file.h ('k') | components/tracing/tracing_messages.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) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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 "components/tracing/trace_config_file.h" 5 #include "components/tracing/trace_config_file.h"
6 6
7 #include <stddef.h>
8
7 #include <string> 9 #include <string>
8 10
9 #include "base/command_line.h" 11 #include "base/command_line.h"
10 #include "base/files/file_util.h" 12 #include "base/files/file_util.h"
11 #include "base/json/json_reader.h" 13 #include "base/json/json_reader.h"
12 #include "base/json/json_writer.h" 14 #include "base/json/json_writer.h"
13 #include "base/logging.h" 15 #include "base/logging.h"
14 #include "base/memory/singleton.h" 16 #include "base/memory/singleton.h"
15 #include "base/values.h" 17 #include "base/values.h"
18 #include "build/build_config.h"
16 #include "components/tracing/tracing_switches.h" 19 #include "components/tracing/tracing_switches.h"
17 20
18 namespace tracing { 21 namespace tracing {
19 22
20 namespace { 23 namespace {
21 24
22 // Maximum trace config file size that will be loaded, in bytes. 25 // Maximum trace config file size that will be loaded, in bytes.
23 const size_t kTraceConfigFileSizeLimit = 64 * 1024; 26 const size_t kTraceConfigFileSizeLimit = 64 * 1024;
24 27
25 // Trace config file path: 28 // Trace config file path:
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 } 140 }
138 141
139 #if !defined(OS_ANDROID) || defined(USE_AURA) 142 #if !defined(OS_ANDROID) || defined(USE_AURA)
140 base::FilePath TraceConfigFile::GetResultFile() const { 143 base::FilePath TraceConfigFile::GetResultFile() const {
141 DCHECK(IsEnabled()); 144 DCHECK(IsEnabled());
142 return result_file_; 145 return result_file_;
143 } 146 }
144 #endif 147 #endif
145 148
146 } // namespace tracing 149 } // namespace tracing
OLDNEW
« no previous file with comments | « components/tracing/trace_config_file.h ('k') | components/tracing/tracing_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698