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

Unified Diff: chrome/browser/android/data_usage/external_data_use_observer_bridge.h

Issue 1582043002: Add histograms for data usage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed holte comments Created 4 years, 11 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/android/data_usage/external_data_use_observer_bridge.h
diff --git a/chrome/browser/android/data_usage/external_data_use_observer_bridge.h b/chrome/browser/android/data_usage/external_data_use_observer_bridge.h
index 2727c4074901f4ee9a56f3fd69406092ca6f2bda..4925870aa6093b2c00b6ca49060fcf85c2aad8e5 100644
--- a/chrome/browser/android/data_usage/external_data_use_observer_bridge.h
+++ b/chrome/browser/android/data_usage/external_data_use_observer_bridge.h
@@ -21,6 +21,7 @@
namespace base {
class SingleThreadTaskRunner;
class Time;
+class TimeTicks;
}
namespace chrome {
@@ -101,6 +102,12 @@ class ExternalDataUseObserverBridge {
// |data_use_tab_model_| is notified of the matching rules on UI thread.
base::WeakPtr<DataUseTabModel> data_use_tab_model_;
+ // The construction time of |this|.
+ const base::TimeTicks construct_time_;
+
+ // True if matching rules are fetched for the first time.
+ bool is_first_matching_rule_fetch_;
+
// |io_task_runner_| accesses ExternalDataUseObserver members on IO thread.
scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;

Powered by Google App Engine
This is Rietveld 408576698