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

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

Issue 1968993002: Compressing .pak resources with new option: "type=GZIPPABLE_BINDATA" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Python formatting 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 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))
« 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