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

Unified Diff: chrome/browser/android/data_usage/external_data_use_observer.cc

Issue 2505343002: Restrict sending GWS ID only to signed in users (Closed)
Patch Set: Rebased Created 3 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.cc
diff --git a/chrome/browser/android/data_usage/external_data_use_observer.cc b/chrome/browser/android/data_usage/external_data_use_observer.cc
index 3d78fc9546605523cc622858d2ec9162e38acc0e..1e6f19a70328d7f9d236bdca6dd3f14480dd49bb 100644
--- a/chrome/browser/android/data_usage/external_data_use_observer.cc
+++ b/chrome/browser/android/data_usage/external_data_use_observer.cc
@@ -217,6 +217,19 @@ DataUseTabModel* ExternalDataUseObserver::GetDataUseTabModel() const {
return data_use_tab_model_;
}
+void ExternalDataUseObserver::SetRegisterGoogleVariationID(
+ bool register_google_variation_id) {
+ DCHECK(thread_checker_.CalledOnValidThread());
+ // It is okay to use base::Unretained here since
+ // |external_data_use_observer_bridge_| is owned by |this|, and is destroyed
+ // on UI thread when |this| is destroyed.
+ ui_task_runner_->PostTask(
+ FROM_HERE,
+ base::Bind(&ExternalDataUseObserverBridge::SetRegisterGoogleVariationID,
+ base::Unretained(external_data_use_observer_bridge_),
+ register_google_variation_id));
+}
+
} // namespace android
} // namespace chrome

Powered by Google App Engine
This is Rietveld 408576698