Index: chrome/browser/io_thread.h |
diff --git a/chrome/browser/io_thread.h b/chrome/browser/io_thread.h |
index fc27d9b337cfbd860cba165afa4e4088108874c7..994de53db3152379fa5f3c76ce537f66ca110d75 100644 |
--- a/chrome/browser/io_thread.h |
+++ b/chrome/browser/io_thread.h |
@@ -290,6 +290,9 @@ class IOThread : public content::BrowserThreadDelegate { |
// a result of a field trial or a command line flag. |
static bool ShouldEnableQuicForDataReductionProxy(); |
+ // Returns the callback fro updating data use prefs. |
+ const metrics::UpdateUsagePrefCallbackType GetMetricsDataUseForwarder(); |
Alexei Svitkine (slow)
2016/04/05 15:58:57
Nit: Return by const ref.
gayane -on leave until 09-2017
2016/04/05 17:24:45
Done.
|
+ |
private: |
// Map from name to value for all parameters associate with a field trial. |
typedef std::map<std::string, std::string> VariationParameters; |
@@ -598,6 +601,10 @@ class IOThread : public content::BrowserThreadDelegate { |
const base::TimeTicks creation_time_; |
+ // Callback for updating data use prefs which needs to be initialized on UI |
+ // thread and passed to |ChromeNetworkDelegate|. |
+ metrics::UpdateUsagePrefCallbackType metrics_data_use_forwarder_; |
+ |
base::WeakPtrFactory<IOThread> weak_factory_; |
DISALLOW_COPY_AND_ASSIGN(IOThread); |