Changes the references to window to goog.global. In cases where the window is defined, goog.global will point to the window. Fixes the case where the window is not defined (which happens in certain unit tests). Now this code doesn't fail due to an undefined window
Changes the references to window to goog.global.
In cases where the window is defined, goog.global will point to the window.
Fixes the case where the window is not defined (which happens in certain unit tests). Now this code doesn't fail due to an undefined window

RELNOTES: n/a

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=129732721

redforks/closure-library,redforks/closure-library,redforks/closure-library,redforks/closure-library