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

Unified Diff: components/nacl/renderer/json_manifest.cc

Issue 1085583005: Refactor params of NaClProcessMsg_Start. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/renderer/json_manifest.cc
diff --git a/components/nacl/renderer/json_manifest.cc b/components/nacl/renderer/json_manifest.cc
index 56a4b2a2352cd36f138de148484a52095b865817..6cab9b41039eefbc06b269011185f01612a5ee54 100644
--- a/components/nacl/renderer/json_manifest.cc
+++ b/components/nacl/renderer/json_manifest.cc
@@ -8,6 +8,7 @@
#include "base/logging.h"
#include "base/macros.h"
+#include "components/nacl/common/nacl_types.h"
#include "components/nacl/renderer/nexe_load_manager.h"
#include "third_party/jsoncpp/source/include/json/reader.h"
#include "third_party/jsoncpp/source/include/json/value.h"
@@ -443,7 +444,7 @@ bool JsonManifest::GetProgramURL(std::string* full_url,
}
void JsonManifest::GetPrefetchableFiles(
- std::vector<std::pair<std::string, std::string> >* out_files) const {
+ std::vector<NaClResourcePrefetchRequest>* out_files) const {
const Json::Value& files = dictionary_[kFilesKey];
if (!files.isObject())
return;
@@ -455,7 +456,7 @@ void JsonManifest::GetPrefetchableFiles(
// We skip invalid entries in "files".
if (GetKeyUrl(files, keys[i], &full_url, &unused_pnacl_options)) {
if (GURL(full_url).SchemeIs("chrome-extension"))
- out_files->push_back(std::make_pair(keys[i], full_url));
+ out_files->push_back(NaClResourcePrefetchRequest(keys[i], full_url));
}
}
}

Powered by Google App Engine
This is Rietveld 408576698