File tree 3 files changed +0
-24
lines changed
android/java/org/chromium/chrome/browser
3 files changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -475,12 +475,6 @@ public void finishNativeInitialization() {
475
475
BraveSyncInformers .show ();
476
476
BraveAndroidSyncDisabledInformer .showInformers ();
477
477
478
- if (!PackageUtils .isFirstInstall (this )
479
- && !OnboardingPrefManager .getInstance ().isP3AEnabledForExistingUsers ()) {
480
- BravePrefServiceBridge .getInstance ().setP3AEnabled (true );
481
- OnboardingPrefManager .getInstance ().setP3AEnabledForExistingUsers (true );
482
- }
483
-
484
478
if (!OnboardingPrefManager .getInstance ().isOneTimeNotificationStarted ()
485
479
&& PackageUtils .isFirstInstall (this )) {
486
480
RetentionNotificationUtil .scheduleNotification (this , RetentionNotificationUtil .HOUR_3 );
Original file line number Diff line number Diff line change 34
34
public class OnboardingPrefManager {
35
35
private static final String PREF_ONBOARDING = "onboarding" ;
36
36
private static final String PREF_P3A_ONBOARDING = "p3a_onboarding" ;
37
- private static final String PREF_P3A_ENABLED_FOR_EXISTING_USERS =
38
- "p3a_enabled_for_existing_users" ;
39
37
private static final String PREF_CROSS_PROMO_MODAL = "cross_promo_modal" ;
40
38
private static final String PREF_ONBOARDING_V2 = "onboarding_v2" ;
41
39
private static final String PREF_NEXT_ONBOARDING_DATE = "next_onboarding_date" ;
@@ -109,16 +107,6 @@ public void setOnboardingShown(boolean isShown) {
109
107
sharedPreferencesEditor .apply ();
110
108
}
111
109
112
- public boolean isP3AEnabledForExistingUsers () {
113
- return mSharedPreferences .getBoolean (PREF_P3A_ENABLED_FOR_EXISTING_USERS , false );
114
- }
115
-
116
- public void setP3AEnabledForExistingUsers (boolean isShown ) {
117
- SharedPreferences .Editor sharedPreferencesEditor = mSharedPreferences .edit ();
118
- sharedPreferencesEditor .putBoolean (PREF_P3A_ENABLED_FOR_EXISTING_USERS , isShown );
119
- sharedPreferencesEditor .apply ();
120
- }
121
-
122
110
/**
123
111
* Returns the user preference for whether the onboarding is shown.
124
112
*/
Original file line number Diff line number Diff line change @@ -402,9 +402,6 @@ void BraveP3AService::StartScheduledUpload() {
402
402
403
403
// Only upload if service is enabled.
404
404
bool p3a_enabled = local_state_->GetBoolean (brave::kP3AEnabled );
405
- #if defined(OS_ANDROID)
406
- p3a_enabled = false ;
407
- #endif // OS_ANDROID
408
405
if (p3a_enabled) {
409
406
const std::string log = log_store_->staged_log ();
410
407
const std::string log_type = log_store_->staged_log_type ();
@@ -417,9 +414,6 @@ void BraveP3AService::StartScheduledUpload() {
417
414
void BraveP3AService::OnHistogramChanged (const char * histogram_name,
418
415
uint64_t name_hash,
419
416
base::HistogramBase::Sample sample) {
420
- #if defined(OS_ANDROID)
421
- return ;
422
- #endif // OS_ANDROID
423
417
std::unique_ptr<base::HistogramSamples> samples =
424
418
base::StatisticsRecorder::FindHistogram (histogram_name)->SnapshotDelta ();
425
419
You can’t perform that action at this time.
0 commit comments