Replaces one completely arbitrary value with another. BUG: 286760 (cherry picked from commit c845ec74)