| Index: content/public/test/browser_test_utils.cc
|
| diff --git a/content/public/test/browser_test_utils.cc b/content/public/test/browser_test_utils.cc
|
| index d9f017d5bcf06773d42d2fca00488d487326b728..8240e8de509d2309b355c71e5b9803fccb3a0af8 100644
|
| --- a/content/public/test/browser_test_utils.cc
|
| +++ b/content/public/test/browser_test_utils.cc
|
| @@ -792,8 +792,9 @@ bool ExecuteWebUIResourceTest(WebContents* web_contents,
|
| for (std::vector<int>::iterator iter = ids.begin();
|
| iter != ids.end();
|
| ++iter) {
|
| - ResourceBundle::GetSharedInstance().GetRawDataResource(*iter)
|
| - .AppendToString(&script);
|
| + scoped_refptr<base::RefCountedMemory> resource =
|
| + ResourceBundle::GetSharedInstance().LoadDataResourceBytes(*iter);
|
| + script.append(resource->front_as<char>(), resource->size());
|
| script.append("\n");
|
| }
|
| if (!ExecuteScript(web_contents, script))
|
|
|