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

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

Issue 7602017: ntp4: respect non-default apps promo logo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync'd against crx-less app change Created 9 years, 4 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/resources/ntp4/nav_dot.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/ntp4/tile_page.js
diff --git a/chrome/browser/resources/ntp4/tile_page.js b/chrome/browser/resources/ntp4/tile_page.js
index 829512cf553ef9c0086b1ad8e92f15ea429aea63..4b99af813bffa5941ddaa09536782b0efa52c7e5 100644
--- a/chrome/browser/resources/ntp4/tile_page.js
+++ b/chrome/browser/resources/ntp4/tile_page.js
@@ -901,8 +901,9 @@ cr.define('ntp4', function() {
this.tileElements_[adjustedIndex]);
this.tileMoved(currentlyDraggingTile);
} else {
+ var originalPage = currentlyDraggingTile.tilePage;
this.addDragData(e.dataTransfer, adjustedIndex);
- currentlyDraggingTile.tilePage.cleanupDrag();
+ originalPage.cleanupDrag();
}
// Dropping the icon may cause topMargin to change, but changing it
@@ -924,7 +925,7 @@ cr.define('ntp4', function() {
if (originalPage == this)
return;
- this.addDragData(null, this.tileElements_.length - 1);
+ this.addDragData(null, this.tileElements_.length);
originalPage.cleanupDrag();
},
« no previous file with comments | « chrome/browser/resources/ntp4/nav_dot.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698