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

Unified Diff: webkit/glue/glue_serialize.cc

Issue 10695107: Fix: file permissions when restoring a page with file inputs with selected files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 4 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 | « webkit/glue/glue_serialize.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/glue_serialize.cc
diff --git a/webkit/glue/glue_serialize.cc b/webkit/glue/glue_serialize.cc
index 4ee3bec89b80a25b51fb43dacf50eb225a2fad03..048bbdd63be70aa7d95b82cbfb13fbe0e2aa9a4c 100644
--- a/webkit/glue/glue_serialize.cc
+++ b/webkit/glue/glue_serialize.cc
@@ -548,15 +548,9 @@ std::vector<FilePath> FilePathsFromHistoryState(
// Couldn't parse the string.
return to_return;
}
- const WebHTTPBody& http_body = item.httpBody();
- if (!http_body.isNull()) {
- WebHTTPBody::Element element;
- for (size_t i = 0; i < http_body.elementCount(); ++i) {
- http_body.elementAt(i, element);
- if (element.type == WebHTTPBody::Element::TypeFile)
- to_return.push_back(WebStringToFilePath(element.filePath));
- }
- }
+ const WebVector<WebString> file_paths = item.getReferencedFilePaths();
+ for (size_t i = 0; i < file_paths.size(); ++i)
+ to_return.push_back(WebStringToFilePath(file_paths[i]));
return to_return;
}
« no previous file with comments | « webkit/glue/glue_serialize.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698