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

Unified Diff: content/browser/devtools/protocol/tracing_handler.cc

Issue 892213004: Mechanical rename of base::debug -> base::trace_event for /content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_trace_part3_1
Patch Set: Rebase. Created 5 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/browser/devtools/protocol/tracing_handler.cc
diff --git a/content/browser/devtools/protocol/tracing_handler.cc b/content/browser/devtools/protocol/tracing_handler.cc
index 6cb81a3d3e4ce9da07b59afc2c9883487a546d48..a4319b9efd04a7bc4d0d318ab26ff556a7f553ae 100644
--- a/content/browser/devtools/protocol/tracing_handler.cc
+++ b/content/browser/devtools/protocol/tracing_handler.cc
@@ -91,8 +91,9 @@ Response TracingHandler::Start(DevToolsCommandId command_id,
return Response::InternalError("Tracing is already started");
is_recording_ = true;
- base::debug::TraceOptions options = TraceOptionsFromString(options_str);
- base::debug::CategoryFilter filter(categories ? *categories : std::string());
+ base::trace_event::TraceOptions options = TraceOptionsFromString(options_str);
+ base::trace_event::CategoryFilter filter(categories ? *categories
+ : std::string());
if (buffer_usage_reporting_interval)
SetupTimer(*buffer_usage_reporting_interval);
@@ -157,9 +158,9 @@ void TracingHandler::OnCategoriesReceived(
GetCategoriesResponse::Create()->set_categories(categories));
}
-base::debug::TraceOptions TracingHandler::TraceOptionsFromString(
+base::trace_event::TraceOptions TracingHandler::TraceOptionsFromString(
const std::string* options) {
- base::debug::TraceOptions ret;
+ base::trace_event::TraceOptions ret;
if (!options)
return ret;
@@ -169,11 +170,11 @@ base::debug::TraceOptions TracingHandler::TraceOptionsFromString(
base::SplitString(*options, ',', &split);
for (iter = split.begin(); iter != split.end(); ++iter) {
if (*iter == kRecordUntilFull) {
- ret.record_mode = base::debug::RECORD_UNTIL_FULL;
+ ret.record_mode = base::trace_event::RECORD_UNTIL_FULL;
} else if (*iter == kRecordContinuously) {
- ret.record_mode = base::debug::RECORD_CONTINUOUSLY;
+ ret.record_mode = base::trace_event::RECORD_CONTINUOUSLY;
} else if (*iter == kRecordAsMuchAsPossible) {
- ret.record_mode = base::debug::RECORD_AS_MUCH_AS_POSSIBLE;
+ ret.record_mode = base::trace_event::RECORD_AS_MUCH_AS_POSSIBLE;
} else if (*iter == kEnableSampling) {
ret.enable_sampling = true;
}
« no previous file with comments | « content/browser/devtools/protocol/tracing_handler.h ('k') | content/browser/media/webrtc_getusermedia_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698