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

Unified Diff: chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellTab.java

Issue 991823003: Use correct TabLaunchType for context menu in Chrome Shell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellTab.java
diff --git a/chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellTab.java b/chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellTab.java
index dcb4d5dae3ae7d76ec451bb82c4d4590f7f2fc1b..7af2b7357a4dd3db4b1c4382e407d47938ecb137 100644
--- a/chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellTab.java
+++ b/chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellTab.java
@@ -97,12 +97,12 @@ public class ChromeShellTab extends Tab {
return new ChromeContextMenuPopulator(new TabChromeContextMenuItemDelegate() {
@Override
public void onOpenInNewTab(String url, Referrer referrer) {
- mTabManager.createTab(url, TabLaunchType.FROM_LINK);
+ mTabManager.createTab(url, TabLaunchType.FROM_LONGPRESS_FOREGROUND);
}
@Override
public void onOpenImageInNewTab(String url, Referrer referrer) {
- mTabManager.createTab(url, TabLaunchType.FROM_LINK);
+ mTabManager.createTab(url, TabLaunchType.FROM_LONGPRESS_FOREGROUND);
}
});
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698