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

Unified Diff: chrome/browser/prerender/prerender_test_utils.cc

Issue 2642733002: Prerender: Disable prefetch if there's an appcache. (Closed)
Patch Set: comments Created 3 years, 10 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: chrome/browser/prerender/prerender_test_utils.cc
diff --git a/chrome/browser/prerender/prerender_test_utils.cc b/chrome/browser/prerender/prerender_test_utils.cc
index 73a22726df91fa18c65967ea7ea4fc3d5396ddfe..e965ba2b7b9f16227a4e5900a4b00c98c422045a 100644
--- a/chrome/browser/prerender/prerender_test_utils.cc
+++ b/chrome/browser/prerender/prerender_test_utils.cc
@@ -744,6 +744,18 @@ base::string16 PrerenderInProcessBrowserTest::MatchTaskManagerPrerender(
base::ASCIIToUTF16(page_title));
}
+GURL PrerenderInProcessBrowserTest::GetURLWithReplacement(
+ const std::string& url_file,
+ const std::string& replacement_variable,
+ const std::string& replacement_text) {
+ base::StringPairs replacement_pair;
+ replacement_pair.push_back(make_pair(replacement_variable, replacement_text));
+ std::string replacement_path;
+ net::test_server::GetFilePathWithReplacements(url_file, replacement_pair,
+ &replacement_path);
+ return src_server()->GetURL(MakeAbsolute(replacement_path));
+}
+
std::vector<std::unique_ptr<TestPrerender>>
PrerenderInProcessBrowserTest::NavigateWithPrerenders(
const GURL& loader_url,

Powered by Google App Engine
This is Rietveld 408576698