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

Unified Diff: content/renderer/dom_serializer_browsertest.cc

Issue 1502563004: Save-Page-As-Complete-Html: Each frame links to a distinct local file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@no-url-deduping-for-frame-and-adding-save-item-id
Patch Set: Rebasing... Created 5 years 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: content/renderer/dom_serializer_browsertest.cc
diff --git a/content/renderer/dom_serializer_browsertest.cc b/content/renderer/dom_serializer_browsertest.cc
index 1737cac91fabad8b5315579df2ea7d43cf221a3a..9cb5f2dd551b2f1be5cf4865e822c28cca275652 100644
--- a/content/renderer/dom_serializer_browsertest.cc
+++ b/content/renderer/dom_serializer_browsertest.cc
@@ -163,10 +163,11 @@ class DomSerializerTests : public ContentBrowserTest,
base::FilePath(FILE_PATH_LITERAL("c:\\dummy.htm")).AsUTF16Unsafe();
std::vector<std::pair<WebURL, WebString>> url_to_local_path;
url_to_local_path.push_back(std::make_pair(WebURL(frame_url), file_path));
+ std::vector<std::pair<WebFrame*, WebString>> frame_to_local_path;
// Start serializing DOM.
- bool result = WebPageSerializer::serialize(
- web_frame->toWebLocalFrame(),
- static_cast<WebPageSerializerClient*>(this), url_to_local_path);
+ bool result =
+ WebPageSerializer::serialize(web_frame->toWebLocalFrame(), this,
+ url_to_local_path, frame_to_local_path);
ASSERT_TRUE(result);
}

Powered by Google App Engine
This is Rietveld 408576698