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

Unified Diff: components/nacl/browser/nacl_host_message_filter.cc

Issue 1010183002: SFI NaCl: Batch-open resource files (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: wip: test fix 1 Created 5 years, 8 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
Index: components/nacl/browser/nacl_host_message_filter.cc
diff --git a/components/nacl/browser/nacl_host_message_filter.cc b/components/nacl/browser/nacl_host_message_filter.cc
index 9da3fe51726b73a3082b190a47e3cf2ddb617f2f..12ec486823c3f204502f8b88f9fd926a7e4c5928 100644
--- a/components/nacl/browser/nacl_host_message_filter.cc
+++ b/components/nacl/browser/nacl_host_message_filter.cc
@@ -170,6 +170,9 @@ void NaClHostMessageFilter::LaunchNaClContinuation(
nacl::NaClLaunchParams safe_launch_params(launch_params);
safe_launch_params.resource_files_to_prefetch.clear();
+ // TODO(yusukes): Make sure that resource file prefetching works fine on
+ // OS_WIN and remove the ifdef.
+#if !defined(OS_WIN)
content::SiteInstance* site_instance = rvh->GetSiteInstance();
for (size_t i = 0; i < launch_params.resource_files_to_prefetch.size(); ++i) {
GURL gurl(launch_params.resource_files_to_prefetch[i].second);
@@ -184,6 +187,7 @@ void NaClHostMessageFilter::LaunchNaClContinuation(
safe_launch_params.resource_files_to_prefetch.push_back(
launch_params.resource_files_to_prefetch[i]);
}
+#endif
// Process a list of resource file URLs in
// |launch_params.resource_files_to_prefetch|.
« no previous file with comments | « no previous file | components/nacl/browser/nacl_process_host.cc » ('j') | components/nacl/loader/nacl_listener.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698