@@ -218,22 +218,20 @@ void NTPBackgroundImagesService::CheckSuperReferralComponent() {
218
218
// If not, this install will be act as a non SR install forever.
219
219
// To resolve that situation,
220
220
// |kNewTabPageGetInitialSRComponentInProgress| introduced.
221
- // If |kReferralCheckedForPromoCodeFile| is true and
222
- // |kNewTabPageCheckingMappingTableInProgress| is false, this means not
223
- // first launch. So , we can mark this install as non-SR.
224
- // If both |kReferralCheckedForPromoCodeFile| and
225
- // |kNewTabPageCheckingMappingTableInProgress| are true, browser had some
226
- // trouble at first launch .
221
+ // If |kReferralCheckedForPromoCodeFile| or |kReferralInitialization|
222
+ // is true and |kNewTabPageCheckingMappingTableInProgress| is false,
223
+ // this means not first launch. Then , we can mark this install as non-SR.
224
+ // If both ( |kReferralCheckedForPromoCodeFile| or |kReferralInitialization|)
225
+ // and |kNewTabPageCheckingMappingTableInProgress| are true,
226
+ // browser had some trouble at first run .
227
227
// If |kNewTabPageGetInitialSRComponentInProgress| is true, we assume that
228
- // initial component downloading is not finished properly.
228
+ // initial component downloading is in-progress
229
229
// So, We will try initialization again.
230
230
// If referral code is non empty, that means browser is shutdown after
231
231
// getting referal code. In this case, we should start downloading mapping
232
232
// table.
233
- // If both |kReferralCheckedForPromoCodeFile| and
234
- // |kNewTabPageCheckingMappingTableInProgress| are true, browser had some
235
- // troublewhile getting mapping table at first fresh launch.
236
- if (local_pref_->GetBoolean (kReferralCheckedForPromoCodeFile ) &&
233
+ if ((local_pref_->GetBoolean (kReferralCheckedForPromoCodeFile ) ||
234
+ local_pref_->GetBoolean (kReferralInitialization )) &&
237
235
!local_pref_->GetBoolean (
238
236
prefs::kNewTabPageGetInitialSRComponentInProgress )) {
239
237
MarkThisInstallIsNotSuperReferralForever ();
0 commit comments