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

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

Issue 2834463005: Fix race with google variation ID registration (Closed)
Patch Set: rebased Created 3 years, 8 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.h
diff --git a/chrome/browser/android/data_usage/external_data_use_observer.h b/chrome/browser/android/data_usage/external_data_use_observer.h
index 3c4b7c219aa227f8e601c7d70223e05880dbd859..c1e4d57e6f0aa924492862f5adb6b294e1dc2be8 100644
--- a/chrome/browser/android/data_usage/external_data_use_observer.h
+++ b/chrome/browser/android/data_usage/external_data_use_observer.h
@@ -78,7 +78,7 @@ class ExternalDataUseObserver : public data_usage::DataUseAggregator::Observer {
return external_data_use_reporter_;
}
- void SetRegisterGoogleVariationID(bool register_google_variation_id);
+ void SetProfileSigninStatus(bool signin_status);
private:
friend class DataUseTabModelTest;
@@ -135,6 +135,9 @@ class ExternalDataUseObserver : public data_usage::DataUseAggregator::Observer {
// True if |this| is currently registered as a data use observer.
bool registered_as_data_use_observer_;
+ // True if profile is signed in and authenticated.
+ bool profile_signin_status_;
+
base::ThreadChecker thread_checker_;
base::WeakPtrFactory<ExternalDataUseObserver> weak_factory_;

Powered by Google App Engine
This is Rietveld 408576698