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

Unified Diff: ios/web/webui/crw_web_ui_manager.mm

Issue 1996723002: Switch ResourceBundle LoadDataResourceBytes to return RefCountedMemory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update to address newly added use 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 | « ios/web/public/web_client.mm ('k') | ios/web/webui/web_ui_ios_data_source_impl.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/webui/crw_web_ui_manager.mm
diff --git a/ios/web/webui/crw_web_ui_manager.mm b/ios/web/webui/crw_web_ui_manager.mm
index b98c388e0130de98fbd84c33f1465913e1b9e93d..286dfb2b7c28ab7314c0011da961d94a97a377ed 100644
--- a/ios/web/webui/crw_web_ui_manager.mm
+++ b/ios/web/webui/crw_web_ui_manager.mm
@@ -252,7 +252,7 @@ const char kScriptCommandPrefix[] = "webui";
{mojo::kUnicodeModuleName, IDR_MOJO_UNICODE_JS},
{mojo::kValidatorModuleName, IDR_MOJO_VALIDATOR_JS},
};
- scoped_refptr<base::RefCountedStaticMemory> scriptData(
+ scoped_refptr<base::RefCountedMemory> scriptData(
web::GetWebClient()->GetDataResourceBytes(resource_map[moduleName]));
if (scriptData) {
std::string script(reinterpret_cast<const char*>(scriptData->front()),
« no previous file with comments | « ios/web/public/web_client.mm ('k') | ios/web/webui/web_ui_ios_data_source_impl.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698