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

Unified Diff: third_party/WebKit/Source/platform/inspector_protocol/Values.cpp

Issue 1817523003: DevTools: Select max resource size in NetworkResourcesData depending on device capabilities. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « third_party/WebKit/Source/platform/inspector_protocol/Values.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/inspector_protocol/Values.cpp
diff --git a/third_party/WebKit/Source/platform/inspector_protocol/Values.cpp b/third_party/WebKit/Source/platform/inspector_protocol/Values.cpp
index 03569db06f583f661cadce4ad4be3765b282bb6a..9049bfeb3118ccb708c2dfdd8ac4eafff9024ff9 100644
--- a/third_party/WebKit/Source/platform/inspector_protocol/Values.cpp
+++ b/third_party/WebKit/Source/platform/inspector_protocol/Values.cpp
@@ -259,6 +259,13 @@ bool DictionaryValue::booleanProperty(const String16& name, bool defaultValue) c
return result;
}
+double DictionaryValue::numberProperty(const String16& name, double defaultValue) const
+{
+ double result = defaultValue;
+ getNumber(name, &result);
+ return result;
+}
+
void DictionaryValue::remove(const String16& name)
{
m_data.remove(name);
« no previous file with comments | « third_party/WebKit/Source/platform/inspector_protocol/Values.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698