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

Issue 1032513002: Files.app: Tag cloud imported media files. (Closed)

Created:
5 years, 9 months ago by Ben Kwa
Modified:
5 years, 9 months ago
Reviewers:
Steve McKay
CC:
chromium-reviews, tfarina, rginda+watch_chromium.org, mtomasz+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Files.app: Tag cloud imported media files. Tags media files that were uploaded via cloud import with a custom Drive property. BUG=469774 Committed: https://crrev.com/57c88499fd6343e84e92f93e4d2811df4d8aed00 Cr-Commit-Position: refs/heads/master@{#321853}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -0 lines) Patch
M ui/file_manager/file_manager/background/js/media_import_handler.js View 1 3 chunks +41 lines, -0 lines 0 comments Download
M ui/file_manager/file_manager/background/js/media_import_handler_unittest.js View 2 chunks +49 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
Ben Kwa
5 years, 9 months ago (2015-03-23 17:12:15 UTC) #2
Steve McKay
LGTM w/ nits. https://codereview.chromium.org/1032513002/diff/1/ui/file_manager/file_manager/background/js/media_import_handler.js File ui/file_manager/file_manager/background/js/media_import_handler.js (right): https://codereview.chromium.org/1032513002/diff/1/ui/file_manager/file_manager/background/js/media_import_handler.js#newcode148 ui/file_manager/file_manager/background/js/media_import_handler.js:148: var UpdateType = importer.MediaImportHandler.ImportTask.UpdateType; The alias ...
5 years, 9 months ago (2015-03-23 18:49:48 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1032513002/20001
5 years, 9 months ago (2015-03-23 20:47:04 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 9 months ago (2015-03-23 21:16:46 UTC) #7
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/57c88499fd6343e84e92f93e4d2811df4d8aed00 Cr-Commit-Position: refs/heads/master@{#321853}
5 years, 9 months ago (2015-03-23 21:17:43 UTC) #8
Ben Kwa
5 years, 9 months ago (2015-03-23 21:36:26 UTC) #9
Message was sent while issue was closed.
https://codereview.chromium.org/1032513002/diff/1/ui/file_manager/file_manage...
File ui/file_manager/file_manager/background/js/media_import_handler.js (right):

https://codereview.chromium.org/1032513002/diff/1/ui/file_manager/file_manage...
ui/file_manager/file_manager/background/js/media_import_handler.js:148: var
UpdateType = importer.MediaImportHandler.ImportTask.UpdateType;
On 2015/03/23 18:49:48, Steve McKay wrote:
> The alias isn't worth the win (which is VERY small in this case). Just:
> 
> if (updateType !==
>     importer.MediaImportHandler.ImportTask.UpdateType) {
>   return;
> }

Done.

https://codereview.chromium.org/1032513002/diff/1/ui/file_manager/file_manage...
ui/file_manager/file_manager/background/js/media_import_handler.js:154: // @type
{!importer.MediaImportHandler.ImportTask.EntryChangedInfo}
On 2015/03/23 18:49:48, Steve McKay wrote:
> I'm pretty sure closure doesn't understand this comment. Even if this is just
> for reader's benefit, I'd just make this a regular closure comment.
> 
> 
> /** @type {!importer.MediaImportHandler.ImportTask.EntryChangedInfo} */

Oops - yes, that was meant to be a closure comment.  Done.

https://codereview.chromium.org/1032513002/diff/1/ui/file_manager/file_manage...
ui/file_manager/file_manager/background/js/media_import_handler.js:159:
console.error('setEntryTag error: ' + chrome.runtime.lastError.message);
On 2015/03/23 18:49:48, Steve McKay wrote:
> 'Unable to tag imported media: ' + ....

Done.

https://codereview.chromium.org/1032513002/diff/1/ui/file_manager/file_manage...
ui/file_manager/file_manager/background/js/media_import_handler.js:166:
chrome.fileManagerPrivate.setEntryTag(
On 2015/03/23 18:49:48, Steve McKay wrote:
> Wrap all args, add a comment to each (where useful).
> 
> 
> chrome.fileManagerPrivate.setEntryTag(
>     info.destination.toURL(),
>     'private',  // scoped to just this app
>     'cloud-import',  // a magic string, maybe put it in a constant so the
> variable name provides more meaning.
>     'media', // I dunno what this is, needs a comment.
>     onError  // why not just inline this function?
> );

Done.

Powered by Google App Engine
This is Rietveld 408576698