Index: content/browser/devtools/devtools_tracing_handler.cc |
diff --git a/content/browser/devtools/devtools_tracing_handler.cc b/content/browser/devtools/devtools_tracing_handler.cc |
index 5605c27e97afdcc5dfc0163b29f2b448e997ffa3..a1719410b1c5937e2243e06cd9145223d38a69f7 100644 |
--- a/content/browser/devtools/devtools_tracing_handler.cc |
+++ b/content/browser/devtools/devtools_tracing_handler.cc |
@@ -28,6 +28,7 @@ const char kCategoriesParam[] = "categories"; |
const char kTraceOptionsParam[] = "trace-options"; |
const char kRecordUntilFull[] = "record-until-full"; |
const char kRecordContinuously[] = "record-continuously"; |
+const char kEnableSampling[] = "enable-sampling"; |
} // namespace |
@@ -74,6 +75,8 @@ base::debug::TraceLog::Options DevToolsTracingHandler::TraceOptionsFromString( |
ret |= base::debug::TraceLog::RECORD_UNTIL_FULL; |
} else if (*iter == kRecordContinuously) { |
ret |= base::debug::TraceLog::RECORD_CONTINUOUSLY; |
+ } else if (*iter == kEnableSampling) { |
+ ret |= base::debug::TraceLog::ENABLE_SAMPLING; |
} |
} |
if (!(ret & base::debug::TraceLog::RECORD_UNTIL_FULL) && |