Replace usage of deprecated getRootUrl() method

Follow-up change 85344 (d94d29a9)

Change-Id: Ia77d445621b426e159f9c120cb55c7e69b193497
Merge "Replace usage of deprecated getRootUrl() method"