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

Issue 10038034: Implemented a "Last Updated" field for the about page of Chrome OS. (Closed)

Created:
8 years, 8 months ago by Kyle Horimoto
Modified:
8 years, 8 months ago
CC:
chromium-reviews, erikwright (departed), arv (Not doing code reviews), brettw-cc_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Implemented a "Last Updated" field for the about page of Chrome OS. BUG=117517 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=133840

Patch Set 1 #

Patch Set 2 : Captitalized the 'U' of "Last Updated" #

Patch Set 3 : Alphabetized #imported header files #

Patch Set 4 : Moved #include's inside #if defined(OS_CHROMEOS) #

Total comments: 12

Patch Set 5 : Updated comments, code style, etc. #

Total comments: 6

Patch Set 6 : Used File thread to access file system, fixed some style nits #

Total comments: 2

Patch Set 7 : Moved file operations to file thread, cached result, fixed style issues #

Total comments: 2

Patch Set 8 : Changed scoped_ptr<Value> to Value* #

Total comments: 2

Patch Set 9 : Moved some #includes into the #if defined(OS_CHROMEOS) #

Patch Set 10 : Added a mutex for synchronization #

Total comments: 2

Patch Set 11 : Removed lock, added comments to explain thread safety #

Total comments: 2

Patch Set 12 : Addded DCHECK()s, moved some code into #if defined(OS_CHROMEOS) #

Total comments: 18

Patch Set 13 : Last Updated hidden if file system fails, comment changes #

Patch Set 14 : Added if statement to skip over string operations if string is already allocated #

Total comments: 5

Patch Set 15 : Changed visibility property, changed WeakPtrFactory use #

Total comments: 2

Patch Set 16 : Moved style information to CSS classes. #

Patch Set 17 : Moved #include out of #if defined(OS_CHROMEOS) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -3 lines) Patch
M base/sys_info.h View 1 2 3 4 5 6 3 chunks +7 lines, -2 lines 0 comments Download
M base/sys_info_chromeos.cc View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/resources/help/help.css View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/resources/help/help.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/resources/help/help.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/help/help_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/help/help_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +54 lines, -1 line 0 comments Download

Messages

Total messages: 30 (0 generated)
Kyle Horimoto
8 years, 8 months ago (2012-04-12 22:51:02 UTC) #1
James Hawkins
https://chromiumcodereview.appspot.com/10038034/diff/7/base/sys_info.h File base/sys_info.h (right): https://chromiumcodereview.appspot.com/10038034/diff/7/base/sys_info.h#newcode19 base/sys_info.h:19: class BASE_EXPORT SysInfo { Boo, this should really be ...
8 years, 8 months ago (2012-04-13 03:36:17 UTC) #2
Kyle Horimoto
https://chromiumcodereview.appspot.com/10038034/diff/7/base/sys_info.h File base/sys_info.h (right): https://chromiumcodereview.appspot.com/10038034/diff/7/base/sys_info.h#newcode19 base/sys_info.h:19: class BASE_EXPORT SysInfo { On 2012/04/13 03:36:17, James Hawkins ...
8 years, 8 months ago (2012-04-13 18:12:38 UTC) #3
Evan Stade
https://chromiumcodereview.appspot.com/10038034/diff/8001/base/sys_info_chromeos.cc File base/sys_info_chromeos.cc (right): https://chromiumcodereview.appspot.com/10038034/diff/8001/base/sys_info_chromeos.cc#newcode116 base/sys_info_chromeos.cc:116: //static // static https://chromiumcodereview.appspot.com/10038034/diff/8001/chrome/browser/ui/webui/help/help_handler.cc File chrome/browser/ui/webui/help/help_handler.cc (right): https://chromiumcodereview.appspot.com/10038034/diff/8001/chrome/browser/ui/webui/help/help_handler.cc#newcode101 chrome/browser/ui/webui/help/help_handler.cc:101: ...
8 years, 8 months ago (2012-04-14 00:37:46 UTC) #4
Kyle Horimoto
https://chromiumcodereview.appspot.com/10038034/diff/8001/base/sys_info_chromeos.cc File base/sys_info_chromeos.cc (right): https://chromiumcodereview.appspot.com/10038034/diff/8001/base/sys_info_chromeos.cc#newcode116 base/sys_info_chromeos.cc:116: //static On 2012/04/14 00:37:46, Evan Stade wrote: > // ...
8 years, 8 months ago (2012-04-16 18:32:54 UTC) #5
Mark Mentovai
LGTM for base OWNERS approval only. I don’t personally think that this feature is particularly ...
8 years, 8 months ago (2012-04-16 18:46:56 UTC) #6
Evan Stade
http://codereview.chromium.org/10038034/diff/15001/chrome/browser/ui/webui/help/help_handler.cc File chrome/browser/ui/webui/help/help_handler.cc (right): http://codereview.chromium.org/10038034/diff/15001/chrome/browser/ui/webui/help/help_handler.cc#newcode196 chrome/browser/ui/webui/help/help_handler.cc:196: base::Bind(&AddLastUpdatedString, localized_strings)); there is a race here, and besides ...
8 years, 8 months ago (2012-04-16 19:42:50 UTC) #7
Kyle Horimoto
https://chromiumcodereview.appspot.com/10038034/diff/15001/chrome/browser/ui/webui/help/help_handler.cc File chrome/browser/ui/webui/help/help_handler.cc (right): https://chromiumcodereview.appspot.com/10038034/diff/15001/chrome/browser/ui/webui/help/help_handler.cc#newcode196 chrome/browser/ui/webui/help/help_handler.cc:196: base::Bind(&AddLastUpdatedString, localized_strings)); On 2012/04/16 19:42:51, Evan Stade wrote: > ...
8 years, 8 months ago (2012-04-17 18:31:44 UTC) #8
Evan Stade
http://codereview.chromium.org/10038034/diff/16006/chrome/browser/ui/webui/help/help_handler.cc File chrome/browser/ui/webui/help/help_handler.cc (right): http://codereview.chromium.org/10038034/diff/16006/chrome/browser/ui/webui/help/help_handler.cc#newcode102 chrome/browser/ui/webui/help/help_handler.cc:102: scoped_ptr<Value> last_updated_string(NULL); you can't put non-POD data here. Besides, ...
8 years, 8 months ago (2012-04-17 19:49:50 UTC) #9
Kyle Horimoto
http://codereview.chromium.org/10038034/diff/16006/chrome/browser/ui/webui/help/help_handler.cc File chrome/browser/ui/webui/help/help_handler.cc (right): http://codereview.chromium.org/10038034/diff/16006/chrome/browser/ui/webui/help/help_handler.cc#newcode102 chrome/browser/ui/webui/help/help_handler.cc:102: scoped_ptr<Value> last_updated_string(NULL); On 2012/04/17 19:49:50, Evan Stade wrote: > ...
8 years, 8 months ago (2012-04-17 20:20:22 UTC) #10
Mark Mentovai
http://codereview.chromium.org/10038034/diff/21001/chrome/browser/ui/webui/help/help_handler.cc File chrome/browser/ui/webui/help/help_handler.cc (right): http://codereview.chromium.org/10038034/diff/21001/chrome/browser/ui/webui/help/help_handler.cc#newcode252 chrome/browser/ui/webui/help/help_handler.cc:252: if (g_last_updated_string == NULL) { This looks racy. Can’t ...
8 years, 8 months ago (2012-04-17 20:26:31 UTC) #11
Kyle Horimoto
http://codereview.chromium.org/10038034/diff/21001/chrome/browser/ui/webui/help/help_handler.cc File chrome/browser/ui/webui/help/help_handler.cc (right): http://codereview.chromium.org/10038034/diff/21001/chrome/browser/ui/webui/help/help_handler.cc#newcode252 chrome/browser/ui/webui/help/help_handler.cc:252: if (g_last_updated_string == NULL) { On 2012/04/17 20:26:31, Mark ...
8 years, 8 months ago (2012-04-17 21:20:03 UTC) #12
Mark Mentovai
http://codereview.chromium.org/10038034/diff/20004/chrome/browser/ui/webui/help/help_handler.cc File chrome/browser/ui/webui/help/help_handler.cc (right): http://codereview.chromium.org/10038034/diff/20004/chrome/browser/ui/webui/help/help_handler.cc#newcode108 chrome/browser/ui/webui/help/help_handler.cc:108: base::Lock g_lock; C’mon, you just fixed g_last_updated_string to not ...
8 years, 8 months ago (2012-04-17 22:03:31 UTC) #13
Kyle Horimoto
Sorry for the mistakes earlier, Mark. Didn't quite understand the global/static object allocation error until ...
8 years, 8 months ago (2012-04-17 23:37:29 UTC) #14
Mark Mentovai
I will not LG the stuff outside of base, so you should still get someone ...
8 years, 8 months ago (2012-04-18 15:59:07 UTC) #15
Kyle Horimoto
Addressed comments, fixed a few things up. http://codereview.chromium.org/10038034/diff/25002/chrome/browser/ui/webui/help/help_handler.cc File chrome/browser/ui/webui/help/help_handler.cc (right): http://codereview.chromium.org/10038034/diff/25002/chrome/browser/ui/webui/help/help_handler.cc#newcode437 chrome/browser/ui/webui/help/help_handler.cc:437: if (g_last_updated_string ...
8 years, 8 months ago (2012-04-18 20:54:18 UTC) #16
Evan Stade
http://codereview.chromium.org/10038034/diff/27001/chrome/browser/ui/webui/help/help_handler.cc File chrome/browser/ui/webui/help/help_handler.cc (right): http://codereview.chromium.org/10038034/diff/27001/chrome/browser/ui/webui/help/help_handler.cc#newcode241 chrome/browser/ui/webui/help/help_handler.cc:241: DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); I disagree this is necessary, the one down ...
8 years, 8 months ago (2012-04-19 03:40:27 UTC) #17
Mark Mentovai
http://codereview.chromium.org/10038034/diff/27001/chrome/browser/ui/webui/help/help_handler.cc File chrome/browser/ui/webui/help/help_handler.cc (right): http://codereview.chromium.org/10038034/diff/27001/chrome/browser/ui/webui/help/help_handler.cc#newcode241 chrome/browser/ui/webui/help/help_handler.cc:241: DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); Evan Stade wrote: > I disagree this is ...
8 years, 8 months ago (2012-04-19 03:44:50 UTC) #18
Kyle Horimoto
http://codereview.chromium.org/10038034/diff/27001/chrome/browser/ui/webui/help/help_handler.cc File chrome/browser/ui/webui/help/help_handler.cc (right): http://codereview.chromium.org/10038034/diff/27001/chrome/browser/ui/webui/help/help_handler.cc#newcode241 chrome/browser/ui/webui/help/help_handler.cc:241: DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); On 2012/04/19 03:40:27, Evan Stade wrote: > I ...
8 years, 8 months ago (2012-04-19 18:31:29 UTC) #19
Evan Stade
http://codereview.chromium.org/10038034/diff/27001/chrome/browser/ui/webui/help/help_handler.cc File chrome/browser/ui/webui/help/help_handler.cc (right): http://codereview.chromium.org/10038034/diff/27001/chrome/browser/ui/webui/help/help_handler.cc#newcode444 chrome/browser/ui/webui/help/help_handler.cc:444: if (g_last_updated_string == NULL) On 2012/04/19 18:31:29, Kyle Horimoto ...
8 years, 8 months ago (2012-04-19 19:30:57 UTC) #20
Kyle Horimoto
http://codereview.chromium.org/10038034/diff/27001/chrome/browser/ui/webui/help/help_handler.cc File chrome/browser/ui/webui/help/help_handler.cc (right): http://codereview.chromium.org/10038034/diff/27001/chrome/browser/ui/webui/help/help_handler.cc#newcode444 chrome/browser/ui/webui/help/help_handler.cc:444: if (g_last_updated_string == NULL) On 2012/04/19 19:30:57, Evan Stade ...
8 years, 8 months ago (2012-04-19 20:07:33 UTC) #21
Evan Stade
http://codereview.chromium.org/10038034/diff/36001/chrome/browser/resources/help/help.html File chrome/browser/resources/help/help.html (right): http://codereview.chromium.org/10038034/diff/36001/chrome/browser/resources/help/help.html#newcode65 chrome/browser/resources/help/help.html:65: <section id="last-updated-container" hidden> perhaps visibility: hidden would be better ...
8 years, 8 months ago (2012-04-19 22:26:57 UTC) #22
Kyle Horimoto
https://chromiumcodereview.appspot.com/10038034/diff/36001/chrome/browser/resources/help/help.html File chrome/browser/resources/help/help.html (right): https://chromiumcodereview.appspot.com/10038034/diff/36001/chrome/browser/resources/help/help.html#newcode65 chrome/browser/resources/help/help.html:65: <section id="last-updated-container" hidden> On 2012/04/19 22:26:57, Evan Stade wrote: ...
8 years, 8 months ago (2012-04-23 20:37:03 UTC) #23
Evan Stade
lgtm with nit http://codereview.chromium.org/10038034/diff/36001/chrome/browser/resources/help/help.html File chrome/browser/resources/help/help.html (right): http://codereview.chromium.org/10038034/diff/36001/chrome/browser/resources/help/help.html#newcode65 chrome/browser/resources/help/help.html:65: <section id="last-updated-container" hidden> On 2012/04/23 20:37:03, ...
8 years, 8 months ago (2012-04-24 18:21:52 UTC) #24
Kyle Horimoto
estade: does this look okay now? http://codereview.chromium.org/10038034/diff/40001/chrome/browser/resources/help/help.js File chrome/browser/resources/help/help.js (right): http://codereview.chromium.org/10038034/diff/40001/chrome/browser/resources/help/help.js#newcode223 chrome/browser/resources/help/help.js:223: $('last-updated-container').style.visibility = 'visible'; ...
8 years, 8 months ago (2012-04-24 21:28:49 UTC) #25
Evan Stade
lgtm
8 years, 8 months ago (2012-04-24 21:30:46 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/khorimoto@chromium.org/10038034/47001
8 years, 8 months ago (2012-04-24 21:31:40 UTC) #27
commit-bot: I haz the power
Try job failure for 10038034-47001 (retry) on mac_rel for step "compile" (clobber build). It's a ...
8 years, 8 months ago (2012-04-24 21:54:51 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/khorimoto@chromium.org/10038034/49002
8 years, 8 months ago (2012-04-24 22:38:19 UTC) #29
commit-bot: I haz the power
8 years, 8 months ago (2012-04-25 01:59:47 UTC) #30
Change committed as 133840

Powered by Google App Engine
This is Rietveld 408576698