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

Unified Diff: chrome/browser/resources/ntp4/apps_page.js

Issue 8770036: NTP4: Found more remnants of bookmarks page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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/browser/resources/ntp4/new_tab_theme.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/ntp4/apps_page.js
diff --git a/chrome/browser/resources/ntp4/apps_page.js b/chrome/browser/resources/ntp4/apps_page.js
index 7551b0dc48940d62d38eceafd3c8c967e9cdf1d7..0aabdb40beceede98843d26e542395d75d02d2ba 100644
--- a/chrome/browser/resources/ntp4/apps_page.js
+++ b/chrome/browser/resources/ntp4/apps_page.js
@@ -661,11 +661,7 @@ cr.define('ntp4', function() {
/** @inheritDoc */
shouldAcceptDrag: function(e) {
- var tile = ntp4.getCurrentlyDraggingTile();
- if (tile && tile.querySelector('.bookmark'))
- return !!tile.firstChild.data.url;
-
- return tile ||
+ return !!ntp4.getCurrentlyDraggingTile() ||
(e.dataTransfer && e.dataTransfer.types.indexOf('url') != -1);
},
@@ -685,9 +681,6 @@ cr.define('ntp4', function() {
} else if (currentlyDraggingTile.querySelector('.most-visited')) {
this.generateAppForLink(tileContents.data);
sourceId = DRAG_SOURCE.MOST_VISITED_PANE;
- } else if (currentlyDraggingTile.querySelector('.bookmark')) {
- this.generateAppForLink(tileContents.data);
- sourceId = DRAG_SOURCE.BOOKMARK_PANE;
}
} else {
this.addOutsideData_(dataTransfer, index);
« no previous file with comments | « no previous file | chrome/browser/resources/ntp4/new_tab_theme.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698