Permalink
Browse files

Changes for supporting partner programs

  • Loading branch information...
samartnik committed Apr 6, 2018
1 parent 450b99d commit 911770a07549ce53f49a9d87a5a19b4da29fb767
@@ -51,6 +51,7 @@
import org.chromium.base.metrics.RecordHistogram;
import org.chromium.base.metrics.RecordUserAction;
import org.chromium.chrome.R;
import org.chromium.chrome.browser.init.StatsUpdater;
import org.chromium.chrome.browser.IntentHandler.IntentHandlerDelegate;
import org.chromium.chrome.browser.IntentHandler.TabOpenType;
import org.chromium.chrome.browser.appmenu.AppMenu;
@@ -1158,8 +1159,15 @@ private void createInitialTab() {
RecordHistogram.recordBooleanHistogram(
"MobileStartup.LoadedHomepageOnColdStart", startupHomepageIsNtp);
}

String partnerOfferPage = StatsUpdater.GetPartnerOfferPage();
if (null != partnerOfferPage && !partnerOfferPage.isEmpty()) {
url = partnerOfferPage;
}
getTabCreator(false).launchUrl(url, TabLaunchType.FROM_CHROME_UI);
if (null != partnerOfferPage && !partnerOfferPage.isEmpty()) {
// Clean up once it is loaded
StatsUpdater.SetPartnerOfferPage(null);
}
}

@Override
Oops, something went wrong.

0 comments on commit 911770a

Please sign in to comment.