Commit 2cc7f514 authored by serya@chromium.org's avatar serya@chromium.org

Updating pinning/unpinning code to be consistent with current API.

API still not implemented.

BUG=None
TEST=Check there is no exception on attempt to pin a file.


Review URL: http://codereview.chromium.org/9696029

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126714 0039d316-1c4b-4281-b951-d872f2087c98
parent 3c952023
......@@ -3094,10 +3094,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();
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment