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

Issue 634583003: Simplify VersionInfo code, avoid hitting sandbox IPC constantly on Windows (Closed)

Created:
6 years, 2 months ago by scottmg
Modified:
6 years, 2 months ago
CC:
chromium-reviews, tim+watch_chromium.org, extensions-reviews_chromium.org, cbentzel+watch_chromium.org, zea+watch_chromium.org, haitaol+watch_chromium.org, pvalenzuela+watch_chromium.org, eroman, asvitkine+watch_chromium.org, chromium-apps-reviews_chromium.org, Ilya Sherman, mmenke, maniscalco+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Simplify VersionInfo code, avoid hitting sandbox IPC constantly on Windows Using FileVersionInfo to fill the VersionInfo causes at least three sync IPCs when used from the renderer. This is used when filling the user agent string for every network request, so having it not do the sync ipcs is... better. So, use the previously posix-only path on Windows and Mac too, since it's simpler anyway. R=thestig@chromium.org, cpu@chromium.org BUG=417941, 402714 Committed: https://crrev.com/2e462536b035b662e86e0b2cf392c8315dfc17db Cr-Commit-Position: refs/heads/master@{#298319}

Patch Set 1 #

Patch Set 2 : mac, cros #

Total comments: 2

Patch Set 3 : . #

Total comments: 2

Patch Set 4 : linux include #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -260 lines) Patch
M chrome/app/chrome_crash_reporter_client.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/drive/drive_integration_service.cc View 1 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/diagnostics/recon_diagnostics.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/extensions/updater/extension_downloader.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/memory_details_mac.cc View 1 1 chunk +2 lines, -7 lines 0 comments Download
M chrome/browser/memory_details_win.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/metrics/chrome_metrics_service_client.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/metrics/variations/variations_service.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/safe_browsing/incident_reporting/environment_data_collection.cc View 1 chunk +7 lines, -9 lines 0 comments Download
M chrome/browser/safe_browsing/protocol_manager_helper.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/search_engines/ui_thread_search_terms_data.cc View 1 chunk +8 lines, -11 lines 0 comments Download
M chrome/browser/signin/chrome_signin_client.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/sync/about_sync_util.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/local_device_info_provider_impl.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/ui/browser_commands.cc View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/ui/webui/help/help_handler.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/net_internals/net_internals_ui.cc View 1 chunk +11 lines, -16 lines 0 comments Download
M chrome/browser/upgrade_detector_impl.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/chrome_common.gypi View 1 chunk +46 lines, -50 lines 0 comments Download
M chrome/common/BUILD.gn View 1 chunk +2 lines, -6 lines 0 comments Download
M chrome/common/chrome_content_client.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/common/chrome_content_client_ios.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/chrome_version_info.h View 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/common/chrome_version_info.cc View 3 chunks +12 lines, -68 lines 0 comments Download
D chrome/common/chrome_version_info_posix.h.version View 1 chunk +0 lines, -13 lines 0 comments Download
A + chrome/common/chrome_version_info_values.h.version View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/common/cloud_print/cloud_print_helpers.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/service_process_util.cc View 3 chunks +0 lines, -11 lines 0 comments Download
M chrome/common/service_process_util_mac.mm View 1 chunk +6 lines, -14 lines 0 comments Download
M chrome/common/service_process_util_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/service/net/service_url_request_context_getter.cc View 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 23 (9 generated)
scottmg
6 years, 2 months ago (2014-10-06 17:32:31 UTC) #4
Alexei Svitkine (slow)
Sweet, this should also fix https://code.google.com/p/chromium/issues/detail?id=402714
6 years, 2 months ago (2014-10-06 17:38:01 UTC) #6
cpu_(ooo_6.6-7.5)
https://codereview.chromium.org/634583003/diff/20001/chrome/common/chrome_version_info_values.h.version File chrome/common/chrome_version_info_values.h.version (left): https://codereview.chromium.org/634583003/diff/20001/chrome/common/chrome_version_info_values.h.version#oldcode13 chrome/common/chrome_version_info_values.h.version:13: #endif // CHROME_COMMON_CHROME_VERSION_INFO_POSIX_H_ "INFO_POSIX" ?
6 years, 2 months ago (2014-10-06 18:19:17 UTC) #8
scottmg
thanks https://codereview.chromium.org/634583003/diff/20001/chrome/common/chrome_version_info_values.h.version File chrome/common/chrome_version_info_values.h.version (left): https://codereview.chromium.org/634583003/diff/20001/chrome/common/chrome_version_info_values.h.version#oldcode13 chrome/common/chrome_version_info_values.h.version:13: #endif // CHROME_COMMON_CHROME_VERSION_INFO_POSIX_H_ On 2014/10/06 18:19:17, cpu wrote: ...
6 years, 2 months ago (2014-10-06 18:20:39 UTC) #9
cpu_(ooo_6.6-7.5)
lgtm
6 years, 2 months ago (2014-10-06 19:21:43 UTC) #10
Lei Zhang
https://codereview.chromium.org/634583003/diff/40001/chrome/browser/diagnostics/recon_diagnostics.cc File chrome/browser/diagnostics/recon_diagnostics.cc (left): https://codereview.chromium.org/634583003/diff/40001/chrome/browser/diagnostics/recon_diagnostics.cc#oldcode363 chrome/browser/diagnostics/recon_diagnostics.cc:363: RecordFailure(DIAG_RECON_NO_VERSION, "No Version"); DIAG_RECON_NO_VERSION is no longer used, but ...
6 years, 2 months ago (2014-10-06 19:22:52 UTC) #11
Lei Zhang
otherwise lgtm
6 years, 2 months ago (2014-10-06 19:24:49 UTC) #12
cpu_(ooo_6.6-7.5)
https://codereview.chromium.org/634583003/diff/40001/chrome/browser/diagnostics/recon_diagnostics.cc File chrome/browser/diagnostics/recon_diagnostics.cc (left): https://codereview.chromium.org/634583003/diff/40001/chrome/browser/diagnostics/recon_diagnostics.cc#oldcode363 chrome/browser/diagnostics/recon_diagnostics.cc:363: RecordFailure(DIAG_RECON_NO_VERSION, "No Version"); On 2014/10/06 19:22:52, Lei Zhang wrote: ...
6 years, 2 months ago (2014-10-06 19:27:43 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/634583003/40001
6 years, 2 months ago (2014-10-06 19:31:45 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/634583003/60001
6 years, 2 months ago (2014-10-06 20:38:47 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_swarming/builds/21195)
6 years, 2 months ago (2014-10-06 23:19:21 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/634583003/60001
6 years, 2 months ago (2014-10-07 00:11:56 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:60001) as 4ab4af85626ab1c4ccb98cccc40684eced55fb1a
6 years, 2 months ago (2014-10-07 02:10:14 UTC) #22
commit-bot: I haz the power
6 years, 2 months ago (2014-10-07 02:11:17 UTC) #23
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/2e462536b035b662e86e0b2cf392c8315dfc17db
Cr-Commit-Position: refs/heads/master@{#298319}

Powered by Google App Engine
This is Rietveld 408576698