Index: chrome/browser/search/suggestions/image_fetcher_impl_browsertest.cc |
diff --git a/chrome/browser/search/suggestions/image_fetcher_impl_browsertest.cc b/chrome/browser/search/suggestions/image_fetcher_impl_browsertest.cc |
index 29c4583b4dd86aff92d49532155578b8bc74b80d..5ac7e082d85160411e2113aff06fd6f796c6399f 100644 |
--- a/chrome/browser/search/suggestions/image_fetcher_impl_browsertest.cc |
+++ b/chrome/browser/search/suggestions/image_fetcher_impl_browsertest.cc |
@@ -17,6 +17,7 @@ |
#include "chrome/test/base/in_process_browser_test.h" |
#include "components/image_fetcher/core/image_fetcher_delegate.h" |
#include "net/test/embedded_test_server/embedded_test_server.h" |
+#include "net/traffic_annotation/network_traffic_annotation_test_helper.h" |
#include "testing/gtest/include/gtest/gtest.h" |
#include "ui/gfx/image/image.h" |
#include "url/gurl.h" |
@@ -76,9 +77,8 @@ class ImageFetcherImplBrowserTest : public InProcessBrowserTest { |
ImageFetcherImpl* CreateImageFetcher() { |
ImageFetcherImpl* fetcher = |
- new ImageFetcherImpl( |
- base::MakeUnique<suggestions::ImageDecoderImpl>(), |
- browser()->profile()->GetRequestContext()); |
+ new ImageFetcherImpl(base::MakeUnique<suggestions::ImageDecoderImpl>(), |
+ browser()->profile()->GetRequestContext()); |
fetcher->SetImageFetcherDelegate(&delegate_); |
return fetcher; |
} |
@@ -100,10 +100,10 @@ class ImageFetcherImplBrowserTest : public InProcessBrowserTest { |
base::RunLoop run_loop; |
image_fetcher_->StartOrQueueNetworkRequest( |
- kTestUrl, |
- image_url, |
+ kTestUrl, image_url, |
base::Bind(&ImageFetcherImplBrowserTest::OnImageAvailable, |
- base::Unretained(this), &run_loop)); |
+ base::Unretained(this), &run_loop), |
+ TRAFFIC_ANNOTATION_FOR_TESTS); |
run_loop.Run(); |
} |