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

Issue 10332272: Change modification date to include time and 'today' and 'yesterday' for appropriate dates. (Closed)

Created:
8 years, 7 months ago by Oleg Eterevsky
Modified:
8 years, 7 months ago
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, nkostylev+watch_chromium.org, Aaron Boodman, rginda+watch_chromium.org, arv (Not doing code reviews), stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Change modification date to include time and 'today' and 'yesterday' for appropriate dates. BUG=127072 TEST=The date column in file manager includes time and for files, modified in the last two days it has 'Today' and 'Yesterday' instead of date. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=138237

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Total comments: 12

Patch Set 11 : #

Total comments: 2

Patch Set 12 : #

Patch Set 13 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -4 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_browser_private_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/resources/file_manager/js/file_manager.js View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +52 lines, -3 lines 0 comments Download
M chrome/browser/resources/file_manager/js/mock_chrome.js View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +30 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
Oleg Eterevsky
8 years, 7 months ago (2012-05-21 15:33:31 UTC) #1
dgozman
https://chromiumcodereview.appspot.com/10332272/diff/2002/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://chromiumcodereview.appspot.com/10332272/diff/2002/chrome/app/generated_resources.grd#newcode11085 chrome/app/generated_resources.grd:11085: + Yesterday <ph name="YESTERDAY_DATTIME">$1<ex>4:48 PM</ex></ph> typo: DATTIME https://chromiumcodereview.appspot.com/10332272/diff/2002/chrome/browser/resources/file_manager/js/file_manager.js File ...
8 years, 7 months ago (2012-05-21 15:45:41 UTC) #2
Oleg Eterevsky
https://chromiumcodereview.appspot.com/10332272/diff/2002/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://chromiumcodereview.appspot.com/10332272/diff/2002/chrome/app/generated_resources.grd#newcode11085 chrome/app/generated_resources.grd:11085: + Yesterday <ph name="YESTERDAY_DATTIME">$1<ex>4:48 PM</ex></ph> On 2012/05/21 15:45:41, dgozman ...
8 years, 7 months ago (2012-05-21 15:53:55 UTC) #3
rginda
https://chromiumcodereview.appspot.com/10332272/diff/8003/chrome/browser/resources/file_manager/js/file_manager.js File chrome/browser/resources/file_manager/js/file_manager.js (right): https://chromiumcodereview.appspot.com/10332272/diff/8003/chrome/browser/resources/file_manager/js/file_manager.js#newcode337 chrome/browser/resources/file_manager/js/file_manager.js:337: undefined /* default locale */, Please don't pass around ...
8 years, 7 months ago (2012-05-21 15:56:07 UTC) #4
dgozman
LGTM after changing undefined to null, as Robert suggests
8 years, 7 months ago (2012-05-21 16:02:33 UTC) #5
Oleg Eterevsky
8 years, 7 months ago (2012-05-22 05:52:43 UTC) #6
https://chromiumcodereview.appspot.com/10332272/diff/8003/chrome/browser/reso...
File chrome/browser/resources/file_manager/js/file_manager.js (right):

https://chromiumcodereview.appspot.com/10332272/diff/8003/chrome/browser/reso...
chrome/browser/resources/file_manager/js/file_manager.js:337: undefined /*
default locale */,
On 2012/05/21 15:56:08, rginda wrote:
> Please don't pass around undefined like this.   Use null instead.
> 
> 'undefined' is a variable that can be assigned to.  To reliably specify
> undefined you need something like (void 0).  Also, undefined is to easy to
pass
> "on accident" (leaving out a parameter, for example), whereas null can only be
> passed on purpose.

Changed to {}. null doesn't work here.

Powered by Google App Engine
This is Rietveld 408576698