Commit e954d6d9 authored by Michael Thiessen's avatar Michael Thiessen Committed by Chromium LUCI CQ

Remove dead code in DownloadActivity

IntentHandler.EXTRA_PARENT_COMPONENT is no longer used by
DownloadActivity.

Change-Id: I73c315ea62fe44c13364a6d64ca94cf8d14f2dff
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2633802
Commit-Queue: Michael Thiessen <mthiesse@chromium.org>
Commit-Queue: Yaron Friedman <yfriedman@chromium.org>
Auto-Submit: Michael Thiessen <mthiesse@chromium.org>
Reviewed-by: default avatarYaron Friedman <yfriedman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#844228}
parent bc7e45bb
......@@ -5,11 +5,8 @@
package org.chromium.chrome.browser.download;
import android.app.Activity;
import android.content.ComponentName;
import android.os.Bundle;
import org.chromium.base.IntentUtils;
import org.chromium.chrome.browser.IntentHandler;
import org.chromium.chrome.browser.SnackbarActivity;
import org.chromium.chrome.browser.download.home.DownloadManagerCoordinator;
import org.chromium.chrome.browser.download.home.DownloadManagerCoordinatorFactoryHelper;
......@@ -63,8 +60,6 @@ public class DownloadActivity extends SnackbarActivity implements ModalDialogMan
OfflineContentAggregatorNotificationBridgeUiFactory.instance();
boolean isOffTheRecord = DownloadUtils.shouldShowOffTheRecordDownloads(getIntent());
boolean showPrefetchContent = DownloadUtils.shouldShowPrefetchContent(getIntent());
ComponentName parentComponent = IntentUtils.safeGetParcelableExtra(
getIntent(), IntentHandler.EXTRA_PARENT_COMPONENT);
mPermissionDelegate =
new ActivityAndroidPermissionDelegate(new WeakReference<Activity>(this));
mOtrProfileID = DownloadUtils.getOTRProfileIDFromIntent(getIntent());
......
......@@ -157,7 +157,6 @@ public class DownloadUtils {
// Sits on top of another Activity.
intent.addFlags(
Intent.FLAG_ACTIVITY_MULTIPLE_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP);
intent.putExtra(IntentHandler.EXTRA_PARENT_COMPONENT, activity.getComponentName());
activity.startActivity(intent);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment