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

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

Issue 1854253002: Disable document mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleaning Created 4 years, 8 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
Index: chrome/android/java/src/org/chromium/chrome/browser/EmbedContentViewActivity.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/EmbedContentViewActivity.java b/chrome/android/java/src/org/chromium/chrome/browser/EmbedContentViewActivity.java
index 6725552fadb0e6f2b91057a846ac07cd64959c1d..7ac4f7e71aa06769884d7035eb10dfae88b0a0ca 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/EmbedContentViewActivity.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/EmbedContentViewActivity.java
@@ -14,7 +14,6 @@ import android.view.MenuItem;
import android.view.View;
import org.chromium.chrome.R;
-import org.chromium.chrome.browser.firstrun.FirstRunFlowSequencer;
import org.chromium.chrome.browser.firstrun.FirstRunStatus;
import org.chromium.chrome.browser.fullscreen.ChromeFullscreenManager;
import org.chromium.chrome.browser.tab.Tab;
@@ -125,12 +124,6 @@ public class EmbedContentViewActivity extends FullScreenActivity {
@Override
protected TabDelegate createTabDelegate(boolean incognito) {
- return new TabDelegate(incognito) {
- @Override
- protected boolean isAllowedToLaunchDocumentActivity(Context context) {
- // Catch a corner case where the user can bypass the ToS. crbug.com/516645
- return FirstRunFlowSequencer.checkIfFirstRunIsNecessary(context, false) == null;
- }
- };
+ return new TabDelegate(incognito);
}
}

Powered by Google App Engine
This is Rietveld 408576698