Commit 721bdd59 authored by tasak@google.com's avatar tasak@google.com

Added UseCounter for XML external DTD.

BUG=367689

Review URL: https://codereview.chromium.org/552673002

git-svn-id: svn://svn.chromium.org/blink/trunk@181602 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 04ff35ec
...@@ -497,6 +497,8 @@ public: ...@@ -497,6 +497,8 @@ public:
MediaStreamEnded = 526, MediaStreamEnded = 526,
MixedContentPrivateIPInPublicWebsitePassive = 527, MixedContentPrivateIPInPublicWebsitePassive = 527,
MixedContentPrivateIPInPublicWebsiteActive = 528, MixedContentPrivateIPInPublicWebsiteActive = 528,
XMLExternalResourceLoad = 529,
// Add new features immediately above this line. Don't change assigned // Add new features immediately above this line. Don't change assigned
// numbers of any item, and don't reuse removed slots. // numbers of any item, and don't reuse removed slots.
// Also, run update_use_counter_feature_enum.py in chromium/src/tools/metrics/histograms/ // Also, run update_use_counter_feature_enum.py in chromium/src/tools/metrics/histograms/
......
...@@ -657,6 +657,8 @@ static void* openFunc(const char* uri) ...@@ -657,6 +657,8 @@ static void* openFunc(const char* uri)
if (!shouldAllowExternalLoad(finalURL)) if (!shouldAllowExternalLoad(finalURL))
return &globalDescriptor; return &globalDescriptor;
UseCounter::count(XMLDocumentParserScope::currentFetcher->document(), UseCounter::XMLExternalResourceLoad);
return new SharedBufferReader(data); return new SharedBufferReader(data);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment