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

Unified Diff: chrome/browser/bitmap_fetcher_browsertest.cc

Issue 222313005: [Profiles] Download high-res avatars using the --new-profile-management flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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: chrome/browser/bitmap_fetcher_browsertest.cc
diff --git a/chrome/browser/bitmap_fetcher_browsertest.cc b/chrome/browser/bitmap_fetcher_browsertest.cc
index c62a3c019b241edcc93acefb858e2b625ee2a7a7..534fa6ef6ad1656d5337601588129cba2ca74e2c 100644
--- a/chrome/browser/bitmap_fetcher_browsertest.cc
+++ b/chrome/browser/bitmap_fetcher_browsertest.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/bitmap_fetcher.h"
#include "base/compiler_specific.h"
+#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "content/public/test/test_utils.h"
@@ -112,7 +113,7 @@ 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());
+ fetcher.Start(browser()->profile()->GetRequestContext());
// Blocks until test delegate is notified via a callback.
content::RunMessageLoop();
@@ -161,7 +162,7 @@ IN_PROC_BROWSER_TEST_F(BitmapFetcherBrowserTest, OnURLFetchFailureTest) {
net::HTTP_INTERNAL_SERVER_ERROR,
net::URLRequestStatus::FAILED);
- fetcher.Start(browser()->profile());
+ fetcher.Start(browser()->profile()->GetRequestContext());
// Blocks until test delegate is notified via a callback.
content::RunMessageLoop();
@@ -185,7 +186,7 @@ IN_PROC_BROWSER_TEST_F(BitmapFetcherBrowserTest, MAYBE_HandleImageFailedTest) {
net::HTTP_OK,
net::URLRequestStatus::SUCCESS);
- fetcher.Start(browser()->profile());
+ fetcher.Start(browser()->profile()->GetRequestContext());
// Blocks until test delegate is notified via a callback.
content::RunMessageLoop();

Powered by Google App Engine
This is Rietveld 408576698