The Chromium Projects
Search this site
Home
Chromium
Chromium OS
Quick links
Report bugs
Discuss
Sitemap
Other sites
Chromium Blog
Google Chrome Extensions
Except as otherwise
noted
, the content of this page is licensed under a
Creative Commons Attribution 2.5 license
, and examples are licensed under the
BSD License
.
Blink (Rendering Engine)
>
Deprecating Features
Contents
1
How To Measure Usage and Notify Developers
How To Measure Usage and Notify Developers
Add your feature to
web_feature.mojom's WebFeature
.
Add a clever deprecation message to the big switch in
UseCounter::deprecationMessage
.
Instrument your code by:
Adding
DeprecateAs
=[your enum value here]
to the fea
ture's IDL definition (see
these examples
).
Adding a call to
Deprecation::CountDeprecation
somewhere relevant (as we're dong for the
UserMediaRequest
).
Note that
DeprecateAs
is intended to replace
MeasureAs
in the IDL file. Specifying both is redundant.
Comments