Porting base  library form chrome.