| Index: chrome/test/data/webui/webui_resource_browsertest.cc
|
| diff --git a/chrome/test/data/webui/webui_resource_browsertest.cc b/chrome/test/data/webui/webui_resource_browsertest.cc
|
| index e6bcf8f01746401695eecb85e93097d04f24484d..8ad1818fee2b8fa1a16464328572c263cc0854eb 100644
|
| --- a/chrome/test/data/webui/webui_resource_browsertest.cc
|
| +++ b/chrome/test/data/webui/webui_resource_browsertest.cc
|
| @@ -36,8 +36,10 @@ class WebUIResourceBrowserTest : public InProcessBrowserTest {
|
|
|
| void LoadResource(int idr) {
|
| ResourceBundle& bundle = ResourceBundle::GetSharedInstance();
|
| - base::StringPiece resource = bundle.GetRawDataResource(idr);
|
| - RunTest(GURL(std::string("data:text/html,") + resource.as_string()));
|
| + scoped_refptr<base::RefCountedMemory> resource =
|
| + bundle.LoadDataResourceBytes(idr);
|
| + RunTest(GURL(std::string("data:text/html,") +
|
| + std::string(resource->front_as<char>(), resource->size())));
|
| }
|
|
|
| // Queues the library corresponding to |resource_id| for injection into the
|
|
|