[M47_2526] Chromium upversion to m47_2526 branch
[platform/framework/web/chromium-efl.git] / tizen_src / chromium_impl / content / browser / tracing / tracing_controller_efl.cc
index 4619bf5..3784e28 100644 (file)
@@ -55,13 +55,11 @@ bool TracingControllerEfl::StartTracing(const std::string& categories,
 
   LOG(INFO) << "Traces: Recording started, categories = [" << categories
             << "], trace options = [" << trace_options << "]";
-  // TODO(prashant.n): Generate options from trace_options argument.
-  base::trace_event::TraceOptions options(
-      base::trace_event::TraceRecordMode::RECORD_CONTINUOUSLY);
-  base::trace_event::CategoryFilter categories_(categories);
+
+  base::trace_event::TraceConfig config_(categories, "record-continuously");
 
   is_tracing_ = TracingController::GetInstance()->EnableRecording(
-      categories_, options, TracingController::EnableRecordingDoneCallback());
+      config_, TracingController::EnableRecordingDoneCallback());
 
   return is_tracing_;
 }