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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorLogAgent.cpp

Issue 2522583002: Roll third_party/inspector_protocol to 4ad35c45aca9834b67ec2cb152c816ea1b7ceb48 (Closed)
Patch Set: updated README.chromium Created 4 years, 1 month 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: third_party/WebKit/Source/core/inspector/InspectorLogAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorLogAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorLogAgent.cpp
index 62bc2d7b7fe044a54fcf96206c19f36b7078b46d..c7f51d705d876e1eee3c948620b3ca4fb5c38c63 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorLogAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorLogAgent.cpp
@@ -92,7 +92,7 @@ void InspectorLogAgent::restore() {
if (config) {
protocol::ErrorSupport errors;
startViolationsReport(
- protocol::Array<ViolationSetting>::parse(config, &errors));
+ protocol::Array<ViolationSetting>::fromValue(config, &errors));
}
}
@@ -184,7 +184,7 @@ Response InspectorLogAgent::startViolationsReport(
std::unique_ptr<protocol::Array<ViolationSetting>> settings) {
if (!m_enabled)
return Response::Error("Log is not enabled");
- m_state->setValue(LogAgentState::logViolations, settings->serialize());
+ m_state->setValue(LogAgentState::logViolations, settings->toValue());
if (!m_performanceMonitor)
return Response::Error("Violations are not supported for this target");
m_performanceMonitor->unsubscribeAll(this);

Powered by Google App Engine
This is Rietveld 408576698