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

Unified Diff: components/data_use_measurement/core/data_use_user_data.h

Issue 2399783003: Split the data use into foreground, background and unknown (Closed)
Patch Set: Created 4 years, 2 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: components/data_use_measurement/core/data_use_user_data.h
diff --git a/components/data_use_measurement/core/data_use_user_data.h b/components/data_use_measurement/core/data_use_user_data.h
index 796ef33281c0af56e6ae24d68d387b6aab511eeb..f22008478acb938f729777c54ccf22207aae32c7 100644
--- a/components/data_use_measurement/core/data_use_user_data.h
+++ b/components/data_use_measurement/core/data_use_user_data.h
@@ -70,14 +70,16 @@ class DataUseUserData : public base::SupportsUserData::Data {
AppState app_state() const { return app_state_; }
+ void set_app_state(AppState app_state) { app_state_ = app_state; }
+
// The key for retrieving back this type of user data.
static const void* const kUserDataKey;
private:
const ServiceName service_name_;
- // App state when the request started.
- const AppState app_state_;
+ // App state when network access was performed for the request previously.
+ AppState app_state_;
DISALLOW_COPY_AND_ASSIGN(DataUseUserData);
};

Powered by Google App Engine
This is Rietveld 408576698