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

Issue 823593006: Move util.loadImage and util.cancelLoadImage to thumbnail_loader.js. (Closed)

Created:
5 years, 12 months ago by yawano
Modified:
5 years, 12 months ago
Reviewers:
mtomasz
CC:
chromium-reviews, 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

Move util.loadImage and util.cancelLoadImage to thumbnail_loader.js. util.loadImage and util.cancelLoadImage seem to be called only by thumbnail_loader.js. Since common/js/util.js is included by many applications, unnecessarily putting codes in common/js/util.js brings unnecessary dependencies. BUG=433728 TEST=GYP_GENERATORS=ninja tools/gyp/gyp --depth . ui/file_manager/gallery/js/compiled_resources.gyp && ninja -C out/Default Committed: https://crrev.com/d0e9b7d3f2c1003e3236b3086df43f098b0436af Cr-Commit-Position: refs/heads/master@{#309615}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove the 2 functions. #

Patch Set 3 : Fix error function. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -40 lines) Patch
M ui/file_manager/file_manager/common/js/util.js View 1 chunk +0 lines, -31 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/thumbnail_loader.js View 1 2 3 chunks +21 lines, -9 lines 0 comments Download

Messages

Total messages: 17 (4 generated)
yawano
PTAL. Thank you!
5 years, 12 months ago (2014-12-24 01:43:53 UTC) #2
mtomasz
https://codereview.chromium.org/823593006/diff/1/ui/file_manager/file_manager/foreground/js/thumbnail_loader.js File ui/file_manager/file_manager/foreground/js/thumbnail_loader.js (right): https://codereview.chromium.org/823593006/diff/1/ui/file_manager/file_manager/foreground/js/thumbnail_loader.js#newcode132 ui/file_manager/file_manager/foreground/js/thumbnail_loader.js:132: * Load an image. IIUC this static method, as ...
5 years, 12 months ago (2014-12-24 01:53:28 UTC) #3
yawano
Thank you for the review! PTAL. https://codereview.chromium.org/823593006/diff/1/ui/file_manager/file_manager/foreground/js/thumbnail_loader.js File ui/file_manager/file_manager/foreground/js/thumbnail_loader.js (right): https://codereview.chromium.org/823593006/diff/1/ui/file_manager/file_manager/foreground/js/thumbnail_loader.js#newcode132 ui/file_manager/file_manager/foreground/js/thumbnail_loader.js:132: * Load an ...
5 years, 12 months ago (2014-12-24 02:06:39 UTC) #4
mtomasz
lgtm
5 years, 12 months ago (2014-12-24 02:07:29 UTC) #5
yawano
On 2014/12/24 02:07:29, mtomasz wrote: > lgtm Thank you!
5 years, 12 months ago (2014-12-24 02:08:07 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/823593006/20001
5 years, 12 months ago (2014-12-24 02:08:27 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/10537)
5 years, 12 months ago (2014-12-24 03:13:12 UTC) #10
yawano
There was a bug in the error function which is passed, and fixed it. PTAL. ...
5 years, 12 months ago (2014-12-24 03:52:23 UTC) #11
mtomasz
lgtm
5 years, 12 months ago (2014-12-24 03:54:17 UTC) #12
yawano
On 2014/12/24 03:54:17, mtomasz wrote: > lgtm Thank you!
5 years, 12 months ago (2014-12-24 03:54:42 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/823593006/40001
5 years, 12 months ago (2014-12-24 03:54:56 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 12 months ago (2014-12-24 04:37:39 UTC) #16
commit-bot: I haz the power
5 years, 12 months ago (2014-12-24 04:38:33 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/d0e9b7d3f2c1003e3236b3086df43f098b0436af
Cr-Commit-Position: refs/heads/master@{#309615}

Powered by Google App Engine
This is Rietveld 408576698