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

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

Issue 10256004: [File Manager] Fixed an error message when pinning a GDrive file failed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 12a77ad1676596f5a6ccae2ddb52810b1c4e789e..97a2878f52bce051368d12b1e55b6570ad604487 100644
--- a/chrome/browser/resources/file_manager/js/file_manager.js
+++ b/chrome/browser/resources/file_manager/js/file_manager.js
@@ -3109,7 +3109,8 @@ FileManager.prototype = {
var self = this;
var pin = checkbox.checked;
function callback(props) {
- if (props.errorCode && pin) {
+ var fileProps = props[0];
+ if (fileProps.errorCode && pin) {
self.metadataCache_.get(entry, 'filesystem', function(filesystem) {
Dmitry Zvorygin 2012/04/28 10:58:24 Maybe not this changeset issue, but if the only er
Vladislav Kaznacheev 2012/04/28 11:12:40 As far as I know it is. We can always revisit it l
self.alert.showHtml(str('GDATA_OUT_OF_SPACE_HEADER'),
strf('GDATA_OUT_OF_SPACE_MESSAGE',
@@ -3118,7 +3119,7 @@ FileManager.prototype = {
}
// We don't have update events yet, so clear the cached data.
self.metadataCache_.clear(entry, 'gdata');
- checkbox.checked = props[0].isPinned;
+ checkbox.checked = fileProps.isPinned;
}
chrome.fileBrowserPrivate.pinGDataFile([entry.toURL()], pin, 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