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

Unified Diff: chrome/browser/bitmap_fetcher_browsertest.cc

Issue 263563003: Add referrer & load flag support to BitmapFetcher class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use new start function only Created 6 years, 7 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/bitmap_fetcher_browsertest.cc
diff --git a/chrome/browser/bitmap_fetcher_browsertest.cc b/chrome/browser/bitmap_fetcher_browsertest.cc
index 534fa6ef6ad1656d5337601588129cba2ca74e2c..ec24139f285cd8159ad3f32f29947c05676a8e1a 100644
--- a/chrome/browser/bitmap_fetcher_browsertest.cc
+++ b/chrome/browser/bitmap_fetcher_browsertest.cc
@@ -113,7 +113,11 @@ IN_PROC_BROWSER_TEST_F(BitmapFetcherBrowserTest, MAYBE_StartTest) {
// We expect that the image decoder will get called and return
// an image in a callback to OnImageDecoded().
- fetcher.Start(browser()->profile()->GetRequestContext());
+ fetcher.Start(
+ browser()->profile()->GetRequestContext(),
+ "",
sky 2014/05/06 15:24:20 ""->std::string() here and every where.
Kibeom Kim (inactive) 2014/05/06 18:07:14 Done.
+ net::URLRequest::CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE,
+ net::LOAD_NORMAL);
// Blocks until test delegate is notified via a callback.
content::RunMessageLoop();
@@ -162,7 +166,11 @@ IN_PROC_BROWSER_TEST_F(BitmapFetcherBrowserTest, OnURLFetchFailureTest) {
net::HTTP_INTERNAL_SERVER_ERROR,
net::URLRequestStatus::FAILED);
- fetcher.Start(browser()->profile()->GetRequestContext());
+ fetcher.Start(
+ browser()->profile()->GetRequestContext(),
+ "",
+ net::URLRequest::CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE,
+ net::LOAD_NORMAL);
// Blocks until test delegate is notified via a callback.
content::RunMessageLoop();
@@ -186,7 +194,11 @@ IN_PROC_BROWSER_TEST_F(BitmapFetcherBrowserTest, MAYBE_HandleImageFailedTest) {
net::HTTP_OK,
net::URLRequestStatus::SUCCESS);
- fetcher.Start(browser()->profile()->GetRequestContext());
+ fetcher.Start(
+ browser()->profile()->GetRequestContext(),
+ "",
+ net::URLRequest::CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE,
+ net::LOAD_NORMAL);
// Blocks until test delegate is notified via a callback.
content::RunMessageLoop();

Powered by Google App Engine
This is Rietveld 408576698