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

Unified Diff: chrome/browser/resources/local_ntp/most_visited_single.js

Issue 1908363002: Nuke chrome.embeddedeseach.newTabPage.navigateContentWindow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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 | « chrome/browser/browser_resources.grd ('k') | chrome/browser/resources/local_ntp/most_visited_util.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/local_ntp/most_visited_single.js
diff --git a/chrome/browser/resources/local_ntp/most_visited_single.js b/chrome/browser/resources/local_ntp/most_visited_single.js
index a17d779578c3b1359714dfcd18d63ebf4fc377bc..9710464dd62e33dc5a55f8383597e1c14be01875 100644
--- a/chrome/browser/resources/local_ntp/most_visited_single.js
+++ b/chrome/browser/resources/local_ntp/most_visited_single.js
@@ -424,18 +424,6 @@ var renderTile = function(data) {
if (data.provider) {
logMostVisitedNavigation(position, data.provider);
}
-
- // For local suggestions, we use navigateContentWindow instead of the
- // default action, since it includes support for file:// urls.
- if (data.rid) {
- ev.preventDefault();
- var disp = chrome.embeddedSearch.newTabPage.getDispositionFromClick(
- ev.button == 1, // MIDDLE BUTTON
- ev.altKey, ev.ctrlKey, ev.metaKey, ev.shiftKey);
-
- window.chrome.embeddedSearch.newTabPage.navigateContentWindow(data.rid,
- disp);
- }
});
tile.addEventListener('keydown', function(event) {
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | chrome/browser/resources/local_ntp/most_visited_util.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698