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

Unified Diff: chrome/browser/resources/file_manager/js/file_manager.js

Issue 9696029: Updating pinning/unpinning code to be consistent with current API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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/browser/resources/file_manager/js/file_manager.js
diff --git a/chrome/browser/resources/file_manager/js/file_manager.js b/chrome/browser/resources/file_manager/js/file_manager.js
index fa14b0a607e9f191dae78f7afc411b8cbdcae5aa..fe4e06dd24f855f45f599d0f185c78bf8e123c21 100644
--- a/chrome/browser/resources/file_manager/js/file_manager.js
+++ b/chrome/browser/resources/file_manager/js/file_manager.js
@@ -3088,10 +3088,8 @@ FileManager.prototype = {
checkbox.checked = entry.gdata_.isPinned = props[0].isPinned;
}
- if (checkbox.checked) {
- chrome.fileBrowserPrivate.pinGDataFile([entry.toURL()], callback);
- console.log('Pinning file ', entry.toURL());
- }
+ chrome.fileBrowserPrivate.pinGDataFile([entry.toURL()],
+ !checkbox.checked, callback);
event.preventDefault();
};
« 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