Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1229)

Unified Diff: content/public/test/browser_test_utils.cc

Issue 2034473004: Revert "Compress .pak resources with new option: "type=GZIPPABLE_BINDATA"" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/content_resources.grd ('k') | tools/grit/grit/exception.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b51ae710bbf255dcaad0ebbffbbcf117a7112065..acec230a10ba65ea5dd1b8a53858527b07523fb0 100644
--- a/content/public/test/browser_test_utils.cc
+++ b/content/public/test/browser_test_utils.cc
@@ -792,9 +792,8 @@ bool ExecuteWebUIResourceTest(WebContents* web_contents,
for (std::vector<int>::iterator iter = ids.begin();
iter != ids.end();
++iter) {
- scoped_refptr<base::RefCountedMemory> resource =
- ResourceBundle::GetSharedInstance().LoadDataResourceBytes(*iter);
- script.append(resource->front_as<char>(), resource->size());
+ ResourceBundle::GetSharedInstance().GetRawDataResource(*iter)
+ .AppendToString(&script);
script.append("\n");
}
if (!ExecuteScript(web_contents, script))
« no previous file with comments | « content/content_resources.grd ('k') | tools/grit/grit/exception.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698