Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4154)

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabDelegateFactory.java

Issue 2405983002: Catch TransactionTooLargeException in another case. (Closed)
Patch Set: Address Maria's comment Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/externalnav/ExternalNavigationDelegate.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabDelegateFactory.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabDelegateFactory.java b/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabDelegateFactory.java
index 7303e9e6af1e3edc1a8d3b339db41fd27417c11a..92a1e0a00d7de479cf3131d1aa05ff781aaeb614 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabDelegateFactory.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabDelegateFactory.java
@@ -8,10 +8,8 @@ import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ResolveInfo;
-import android.os.TransactionTooLargeException;
import android.text.TextUtils;
-import org.chromium.base.Log;
import org.chromium.base.VisibleForTesting;
import org.chromium.chrome.browser.contextmenu.ChromeContextMenuPopulator;
import org.chromium.chrome.browser.contextmenu.ContextMenuPopulator;
@@ -23,6 +21,7 @@ import org.chromium.chrome.browser.tab.TabContextMenuItemDelegate;
import org.chromium.chrome.browser.tab.TabDelegateFactory;
import org.chromium.chrome.browser.tab.TabWebContentsDelegateAndroid;
import org.chromium.chrome.browser.tab.TopControlsVisibilityDelegate;
+import org.chromium.chrome.browser.util.IntentUtils;
import org.chromium.chrome.browser.util.UrlUtilities;
/**
@@ -82,7 +81,7 @@ public class CustomTabDelegateFactory extends TabDelegateFactory {
}
return false;
} catch (RuntimeException e) {
- logTransactionTooLargeOrRethrow(e, intent);
+ IntentUtils.logTransactionTooLargeOrRethrow(e, intent);
return false;
}
}
@@ -104,7 +103,7 @@ public class CustomTabDelegateFactory extends TabDelegateFactory {
}
}
} catch (RuntimeException e) {
- logTransactionTooLargeOrRethrow(e, intent);
+ IntentUtils.logTransactionTooLargeOrRethrow(e, intent);
}
return false;
}
@@ -116,15 +115,6 @@ public class CustomTabDelegateFactory extends TabDelegateFactory {
public boolean hasExternalActivityStarted() {
return mHasActivityStarted;
}
-
- private static void logTransactionTooLargeOrRethrow(RuntimeException e, Intent intent) {
- // See http://crbug.com/369574.
- if (e.getCause() instanceof TransactionTooLargeException) {
- Log.e(TAG, "Could not resolve Activity for intent " + intent.toString(), e);
- } else {
- throw e;
- }
- }
}
private static class CustomTabWebContentsDelegate extends TabWebContentsDelegateAndroid {
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/externalnav/ExternalNavigationDelegate.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698