Commit 11c081ff authored by dfalcantara's avatar dfalcantara Committed by Commit bot

Don't fire error messages if an install kills Chrome

Die silently if the Play Store starts installing an app
promoted by the webpage and Chrome dies in the background
before returning.  In this case, the infobar will disappear
before the user gets back anyway.

BUG=453170

Review URL: https://codereview.chromium.org/913593002

Cr-Commit-Position: refs/heads/master@{#315406}
parent 307787f6
......@@ -176,8 +176,7 @@ public class AppBannerManager extends EmptyTabObserver {
// Try installing the app. If the installation was kicked off, return false to prevent
// the infobar from disappearing.
return !mTab.getWindowAndroid().showIntent(
appData.installIntent(), createIntentCallback(appData),
R.string.low_memory_error);
appData.installIntent(), createIntentCallback(appData), null);
}
}
......@@ -215,16 +214,7 @@ public class AppBannerManager extends EmptyTabObserver {
@CalledByNative
private void showAppDetails(AppData appData) {
WindowAndroid.IntentCallback emptyCallback = new WindowAndroid.IntentCallback() {
@Override
public void onIntentCompleted(WindowAndroid window, int resultCode,
ContentResolver contentResolver, Intent data) {
// Do nothing.
}
};
mTab.getWindowAndroid().showIntent(
appData.detailsIntent(), emptyCallback, R.string.low_memory_error);
mTab.getWindowAndroid().showIntent(appData.detailsIntent(), null, null);
}
@CalledByNative
......
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