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

Unified Diff: chrome/browser/search/suggestions/image_fetcher_impl_browsertest.cc

Issue 2794343002: Network traffic annotation added to image_data_fetcher. (Closed)
Patch Set: Annotation moved to callers. Created 3 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/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..496d35176b50f3a04b705910364c8e905b4f3a0f 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,9 @@ 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(),
+ TRAFFIC_ANNOTATION_FOR_TESTS);
fetcher->SetImageFetcherDelegate(&delegate_);
return fetcher;
}

Powered by Google App Engine
This is Rietveld 408576698