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

Unified Diff: chrome/browser/chromeos/hats/hats_notification_controller.cc

Issue 2794343002: Network traffic annotation added to image_data_fetcher. (Closed)
Patch Set: Comments addressed. 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/hats/hats_notification_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/hats/hats_notification_controller.cc
diff --git a/chrome/browser/chromeos/hats/hats_notification_controller.cc b/chrome/browser/chromeos/hats/hats_notification_controller.cc
index 36ee547d36711c652c3d26db709fcbfc2702971f..81cdf1b4a88369528daac7834884631747d0905f 100644
--- a/chrome/browser/chromeos/hats/hats_notification_controller.cc
+++ b/chrome/browser/chromeos/hats/hats_notification_controller.cc
@@ -26,6 +26,7 @@
#include "chromeos/network/network_state.h"
#include "components/image_fetcher/core/image_fetcher_impl.h"
#include "components/prefs/pref_service.h"
+#include "net/traffic_annotation/network_traffic_annotation.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/image/image_skia_rep.h"
@@ -234,11 +235,13 @@ void HatsNotificationController::OnPortalDetectionCompleted(
image_fetcher_->StartOrQueueNetworkRequest(
kImageFetcher1xId, GURL(kGoogleIcon1xUrl),
base::Bind(&HatsNotificationController::OnImageFetched,
- weak_pointer_factory_.GetWeakPtr()));
+ weak_pointer_factory_.GetWeakPtr()),
+ NO_TRAFFIC_ANNOTATION_YET);
image_fetcher_->StartOrQueueNetworkRequest(
kImageFetcher2xId, GURL(kGoogleIcon2xUrl),
base::Bind(&HatsNotificationController::OnImageFetched,
- weak_pointer_factory_.GetWeakPtr()));
+ weak_pointer_factory_.GetWeakPtr()),
+ NO_TRAFFIC_ANNOTATION_YET);
}
void HatsNotificationController::OnImageFetched(
« no previous file with comments | « no previous file | chrome/browser/chromeos/hats/hats_notification_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698