Chromium Code Reviews| Index: components/ntp_tiles/popular_sites.cc |
| diff --git a/components/ntp_tiles/popular_sites.cc b/components/ntp_tiles/popular_sites.cc |
| index 912622fae08513f91ef74bca3241af9f29cdd14c..b6c851f1c933852b905d1f0a5a01f98a691f9906 100644 |
| --- a/components/ntp_tiles/popular_sites.cc |
| +++ b/components/ntp_tiles/popular_sites.cc |
| @@ -19,6 +19,7 @@ |
| #include "base/task_runner_util.h" |
| #include "base/time/time.h" |
| #include "base/values.h" |
| +#include "components/data_use_measurement/core/data_use_user_data.h" |
| #include "components/google/core/browser/google_util.h" |
| #include "components/ntp_tiles/constants.h" |
| #include "components/ntp_tiles/pref_names.h" |
| @@ -278,6 +279,9 @@ void PopularSites::OnReadFileDone(std::unique_ptr<std::string> data, |
| void PopularSites::FetchPopularSites() { |
| fetcher_ = URLFetcher::Create(pending_url_, URLFetcher::GET, this); |
| + // TODO(sfiera): Count the downloaded bytes of icons fetched by popular sites. |
| + data_use_measurement::DataUseUserData::AttachToFetcher( |
| + fetcher_.get(), data_use_measurement::DataUseUserData::NTP_SNIPPETS); |
|
sfiera
2016/09/23 08:15:01
Needs to be NTP_TILES here.
|
| fetcher_->SetRequestContext(download_context_); |
| fetcher_->SetLoadFlags(net::LOAD_DO_NOT_SEND_COOKIES | |
| net::LOAD_DO_NOT_SAVE_COOKIES); |