Chromium Code Reviews| Index: third_party/WebKit/Source/core/frame/Deprecation.cpp |
| diff --git a/third_party/WebKit/Source/core/frame/Deprecation.cpp b/third_party/WebKit/Source/core/frame/Deprecation.cpp |
| index 424639ea00885eba1c3dca0641b41efd42579fb5..6632e8f3febb97fe620367f82aa36db9b2a49def 100644 |
| --- a/third_party/WebKit/Source/core/frame/Deprecation.cpp |
| +++ b/third_party/WebKit/Source/core/frame/Deprecation.cpp |
| @@ -55,6 +55,11 @@ String dopplerWillBeRemoved(const char* feature, int milestone, const char* deta |
| return String::format("%s is deprecated and will be removed in %s. It has no effect as the Web Audio doppler effects have already been removed internally. See https://www.chromestatus.com/features/%s for more details.", feature, milestoneString(milestone), details); |
| } |
| +String replacedWillBeRemovedWithoutDetails(const char* feature, const char* replacement, int milestone) |
|
foolip
2016/07/12 10:36:26
Can you add a chromestatus.com entry instead? Joe
|
| +{ |
| + return String::format("%s is deprecated and will be removed in %s. Please use %s instead.", feature, milestoneString(milestone), replacement); |
| +} |
| + |
| String replacedWillBeRemoved(const char* feature, const char* replacement, int milestone, const char* details) |
| { |
| return String::format("%s is deprecated and will be removed in %s. Please use %s instead. See https://www.chromestatus.com/features/%s for more details.", feature, milestoneString(milestone), replacement, details); |
| @@ -255,7 +260,7 @@ String Deprecation::deprecationMessage(UseCounter::Feature feature) |
| return "'getMatchedCSSRules()' is deprecated. For more help, check https://code.google.com/p/chromium/issues/detail?id=437569#c2"; |
| case UseCounter::PrefixedImageSmoothingEnabled: |
| - return replacedBy("'CanvasRenderingContext2D.webkitImageSmoothingEnabled'", "'CanvasRenderingContext2D.imageSmoothingEnabled'"); |
| + return replacedWillBeRemovedWithoutDetails("'CanvasRenderingContext2D.webkitImageSmoothingEnabled'", "'CanvasRenderingContext2D.imageSmoothingEnabled'", 55); |
| case UseCounter::AudioListenerDopplerFactor: |
| return dopplerWillBeRemoved("'AudioListener.dopplerFactor'", 55, "5238926818148352"); |