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

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

Issue 2151083002: DevTools: explicitly differentiate ints vs doubles in the protocol bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lcean Created 4 years, 5 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: third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp
index fdaecbec8f810feb6f5b7e9c05154ab0c1a1b13c..068317a6a778a96ec851406646925dd0ff5a4a78 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp
@@ -349,7 +349,7 @@ void InspectorPageAgent::restore()
ErrorString error;
if (m_state->booleanProperty(PageAgentState::pageAgentEnabled, false))
enable(&error);
- setBlockedEventsWarningThreshold(&error, m_state->numberProperty(PageAgentState::blockedEventsWarningThreshold, 0.0));
+ setBlockedEventsWarningThreshold(&error, m_state->doubleProperty(PageAgentState::blockedEventsWarningThreshold, 0.0));
}
void InspectorPageAgent::enable(ErrorString*)
@@ -750,7 +750,7 @@ void InspectorPageAgent::setOverlayMessage(ErrorString*, const Maybe<String>& me
void InspectorPageAgent::setBlockedEventsWarningThreshold(ErrorString*, double threshold)
{
- m_state->setNumber(PageAgentState::blockedEventsWarningThreshold, threshold);
+ m_state->setDouble(PageAgentState::blockedEventsWarningThreshold, threshold);
FrameHost* host = m_inspectedFrames->root()->host();
if (!host)
return;

Powered by Google App Engine
This is Rietveld 408576698