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

Issue 23588009: Parse /etc/lsb-release only once on ChromeOS (Closed)

Created:
7 years, 3 months ago by stevenjb
Modified:
7 years, 2 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, nkostylev+watch_chromium.org, Ilya Sherman, asvitkine+watch_chromium.org, rginda+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, erikwright+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, jar (doing other things)
Visibility:
Public.

Description

Parse /etc/lsb-release only once on ChromeOS This moves all parsing and caching of the contents of /etc/lsb-release to base::SysInfo. This eliminates redundant parsing from: * LsbReleaseLogSource * VersionLoader * StatisticsProvider BUG=266903 For chrome_main_deleagate.cc (code removal only) R=brettw@chromium.org, derat@chromium.org, pneubeck@chromium.org, xiyuan@chromium.org TBR=cpu@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=225581

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : . #

Total comments: 2

Patch Set 4 : Fix tests #

Total comments: 27

Patch Set 5 : Feedback #

Total comments: 2

Patch Set 6 : Rebase #

Patch Set 7 : Rebase #

Patch Set 8 : . #

Patch Set 9 : Rebase #

Patch Set 10 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+264 lines, -501 lines) Patch
M base/sys_info.h View 1 2 3 4 2 chunks +21 lines, -13 lines 0 comments Download
M base/sys_info_chromeos.cc View 1 2 3 4 5 1 chunk +148 lines, -73 lines 0 comments Download
M base/sys_info_unittest.cc View 1 2 3 4 5 5 chunks +35 lines, -23 lines 0 comments Download
M chrome/app/chrome_main_delegate.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_manager/private_api_strings.cc View 1 2 2 chunks +3 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/extensions/info_private_api.cc View 1 2 2 chunks +2 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/external_metrics.cc View 1 2 3 4 5 1 chunk +1 line, -10 lines 0 comments Download
M chrome/browser/chromeos/system/statistics_provider.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/system/statistics_provider.cc View 6 chunks +0 lines, -37 lines 0 comments Download
M chrome/browser/chromeos/system_logs/lsb_release_log_source.h View 1 2 3 1 chunk +0 lines, -13 lines 0 comments Download
M chrome/browser/chromeos/system_logs/lsb_release_log_source.cc View 1 chunk +9 lines, -67 lines 0 comments Download
D chrome/browser/chromeos/system_logs/lsb_release_log_source_unittest.cc View 1 2 3 1 chunk +0 lines, -59 lines 0 comments Download
M chrome/browser/chromeos/version_loader.h View 1 2 3 3 chunks +4 lines, -16 lines 0 comments Download
M chrome/browser/chromeos/version_loader.cc View 5 chunks +24 lines, -59 lines 0 comments Download
M chrome/browser/chromeos/version_loader_unittest.cc View 2 chunks +3 lines, -52 lines 0 comments Download
M chrome/browser/policy/cloud/device_management_service.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -6 lines 0 comments Download
M chrome/browser/ui/webui/help/help_handler.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/help/help_handler.cc View 3 chunks +4 lines, -44 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
stevenjb
derat@ - overall review brettw@ - base/ pneubeck@ - c/b/policy/ xiyuan@ - c/b/u/webui https://codereview.chromium.org/23588009/diff/5001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc File ...
7 years, 3 months ago (2013-09-23 23:38:04 UTC) #1
xiyuan
c/b/u/webui LGTM
7 years, 3 months ago (2013-09-23 23:59:23 UTC) #2
pneubeck (no reviews)
nice cleanup. chrome/browser/policy/cloud/device_management_service.cc lgtm. https://codereview.chromium.org/23588009/diff/12001/base/sys_info.h File base/sys_info.h (right): https://codereview.chromium.org/23588009/diff/12001/base/sys_info.h#newcode85 base/sys_info.h:85: // Returns a the contents ...
7 years, 3 months ago (2013-09-24 07:44:51 UTC) #3
Daniel Erat
Thanks for cleaning this up! https://codereview.chromium.org/23588009/diff/12001/base/sys_info.h File base/sys_info.h (right): https://codereview.chromium.org/23588009/diff/12001/base/sys_info.h#newcode96 base/sys_info.h:96: // time of the ...
7 years, 3 months ago (2013-09-24 15:37:52 UTC) #4
stevenjb
https://codereview.chromium.org/23588009/diff/12001/base/sys_info.h File base/sys_info.h (right): https://codereview.chromium.org/23588009/diff/12001/base/sys_info.h#newcode85 base/sys_info.h:85: // Returns a the contents of /etc/lsb-release as a ...
7 years, 3 months ago (2013-09-24 17:18:33 UTC) #5
Daniel Erat
lgtm https://codereview.chromium.org/23588009/diff/20001/base/sys_info_chromeos.cc File base/sys_info_chromeos.cc (right): https://codereview.chromium.org/23588009/diff/20001/base/sys_info_chromeos.cc#newcode73 base/sys_info_chromeos.cc:73: lsb_release_map_["lsb-source"] = nit: for consistency, the key string ...
7 years, 3 months ago (2013-09-24 18:09:08 UTC) #6
stevenjb
https://codereview.chromium.org/23588009/diff/20001/base/sys_info_chromeos.cc File base/sys_info_chromeos.cc (right): https://codereview.chromium.org/23588009/diff/20001/base/sys_info_chromeos.cc#newcode73 base/sys_info_chromeos.cc:73: lsb_release_map_["lsb-source"] = On 2013/09/24 18:09:09, Daniel Erat wrote: > ...
7 years, 3 months ago (2013-09-24 18:31:33 UTC) #7
brettw
base owners lgtm, didn't check the details.
7 years, 2 months ago (2013-09-25 17:36:46 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevenjb@chromium.org/23588009/37001
7 years, 2 months ago (2013-09-25 19:34:18 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevenjb@chromium.org/23588009/37001
7 years, 2 months ago (2013-09-25 21:27:59 UTC) #10
stevenjb
7 years, 2 months ago (2013-09-26 21:51:30 UTC) #11
Message was sent while issue was closed.
Committed patchset #10 manually as r225581.

Powered by Google App Engine
This is Rietveld 408576698