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

Issue 637023002: Misc. cleanup, primarily removing unused locals. (Closed)

Created:
6 years, 2 months ago by Peter Kasting
Modified:
5 years ago
CC:
chromium-reviews, sadrul, qsr+mojo_chromium.org, tzik, yzshen+watch_chromium.org, aandrey+blink_chromium.org, ben+mojo_chromium.org, cbentzel+watch_chromium.org, vsevik, gavinp+disk_chromium.org, grt+watch_chromium.org, viettrungluu+watch_chromium.org, jam, abarth-chromium, darin-cc_chromium.org, devtools-reviews_chromium.org, kalyank, erikwright+watch_chromium.org, nhiroki, paulirish+reviews_chromium.org, wfh+watch_chromium.org, yurys, Aaron Boodman, pfeldman, darin (slow to review), kinuko+fileapi, ben+ash_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Misc. cleanup, primarily removing unused locals. Also various other fixes, e.g. condensing code, converting DCHECK_LT(0, a) -> DCHECK_GT(a, 0) (and the like) for readability, inserting a few typecasts. BUG=none TEST=none Committed: https://crrev.com/7bc277b97e9f5f3b470c4b6ccd9337ff73892159 Cr-Commit-Position: refs/heads/master@{#299362}

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Remove macros.h change #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -134 lines) Patch
M chrome/app/chrome_crash_reporter_client.cc View 1 2 chunks +9 lines, -13 lines 0 comments Download
M chrome/browser/ui/webui/devtools_ui.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/installer/util/installer_state.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/service/service_utility_process_host.cc View 1 chunk +0 lines, -1 line 0 comments Download
M components/crash/app/breakpad_win.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M components/crash/tools/crash_service.cc View 2 chunks +1 line, -2 lines 0 comments Download
M components/wifi/wifi_service_win.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/devtools/devtools_http_handler_impl.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/fileapi/obfuscated_file_util_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/test/plugin/plugin_get_javascript_url_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/test/plugin/plugin_npobject_lifetime_test.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M ipc/ipc_channel_reader.cc View 1 chunk +1 line, -2 lines 0 comments Download
M ipc/ipc_sync_channel.cc View 1 chunk +1 line, -2 lines 0 comments Download
M net/base/escape.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/disk_cache/cache_util.cc View 1 chunk +4 lines, -7 lines 2 comments Download
M net/disk_cache/simple/simple_synchronous_entry.cc View 19 chunks +43 lines, -46 lines 4 comments Download
M net/disk_cache/simple/simple_util.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M net/proxy/dhcp_proxy_script_adapter_fetcher_win.cc View 1 chunk +0 lines, -1 line 0 comments Download
M net/spdy/spdy_frame_builder.cc View 5 chunks +13 lines, -13 lines 1 comment Download
M net/spdy/spdy_framer.cc View 4 chunks +4 lines, -8 lines 0 comments Download
M net/spdy/spdy_session_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ui/gfx/gdi_util.h View 1 chunk +0 lines, -5 lines 0 comments Download
M ui/gfx/gdi_util.cc View 3 chunks +13 lines, -17 lines 0 comments Download
M ui/gfx/win/hwnd_util.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 20 (6 generated)
Peter Kasting
sky: chrome/, ui/ OWNERS blundell: components/ OWNERS jam: content/, ipc/ OWNERS rvargas: net/ OWNERS https://codereview.chromium.org/637023002/diff/40001/net/disk_cache/cache_util.cc ...
6 years, 2 months ago (2014-10-08 19:21:56 UTC) #2
grt (UTC plus 2)
chrome/installer/util/installer_state.cc lgtm
6 years, 2 months ago (2014-10-08 19:41:26 UTC) #3
rvargas (doing something else)
net LGTM https://codereview.chromium.org/637023002/diff/40001/net/disk_cache/cache_util.cc File net/disk_cache/cache_util.cc (left): https://codereview.chromium.org/637023002/diff/40001/net/disk_cache/cache_util.cc#oldcode156 net/disk_cache/cache_util.cc:156: return implicit_cast<int32>(max_size); On 2014/10/08 19:21:56, Peter Kasting ...
6 years, 2 months ago (2014-10-08 20:01:14 UTC) #4
sky
LGTM
6 years, 2 months ago (2014-10-08 22:28:58 UTC) #5
blundell
//components LGTM
6 years, 2 months ago (2014-10-09 05:58:29 UTC) #6
Peter Kasting
jam seems to be unresponsive, so: avi: content/ OWNERS tsepez: ipc/ OWNERS
6 years, 2 months ago (2014-10-13 19:52:01 UTC) #8
Avi (use Gerrit)
content stuff LGTM
6 years, 2 months ago (2014-10-13 20:04:14 UTC) #9
Tom Sepez
ipc/ LGTM.
6 years, 2 months ago (2014-10-13 20:06:19 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/637023002/40001
6 years, 2 months ago (2014-10-13 20:14:49 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
6 years, 2 months ago (2014-10-13 20:58:50 UTC) #13
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/7bc277b97e9f5f3b470c4b6ccd9337ff73892159 Cr-Commit-Position: refs/heads/master@{#299362}
6 years, 2 months ago (2014-10-13 20:59:56 UTC) #14
pasko
https://codereview.chromium.org/637023002/diff/40001/net/disk_cache/simple/simple_synchronous_entry.cc File net/disk_cache/simple/simple_synchronous_entry.cc (right): https://codereview.chromium.org/637023002/diff/40001/net/disk_cache/simple/simple_synchronous_entry.cc#newcode438 net/disk_cache/simple/simple_synchronous_entry.cc:438: int range_len = base::saturated_cast<int>(found_range->length); Is this actually right? I ...
5 years ago (2015-12-09 18:41:07 UTC) #18
Peter Kasting
https://codereview.chromium.org/637023002/diff/40001/net/disk_cache/simple/simple_synchronous_entry.cc File net/disk_cache/simple/simple_synchronous_entry.cc (right): https://codereview.chromium.org/637023002/diff/40001/net/disk_cache/simple/simple_synchronous_entry.cc#newcode438 net/disk_cache/simple/simple_synchronous_entry.cc:438: int range_len = base::saturated_cast<int>(found_range->length); On 2015/12/09 18:41:06, pasko wrote: ...
5 years ago (2015-12-09 22:07:23 UTC) #19
pasko
5 years ago (2015-12-10 09:50:16 UTC) #20
Message was sent while issue was closed.
On 2015/12/09 22:07:23, Peter Kasting wrote:
>
https://codereview.chromium.org/637023002/diff/40001/net/disk_cache/simple/si...
> File net/disk_cache/simple/simple_synchronous_entry.cc (right):
> 
>
https://codereview.chromium.org/637023002/diff/40001/net/disk_cache/simple/si...
> net/disk_cache/simple/simple_synchronous_entry.cc:438: int range_len =
> base::saturated_cast<int>(found_range->length);
> On 2015/12/09 18:41:06, pasko wrote:
> > Is this actually right?
> > 
> > I am not very familiar with the sparse cache code, but it seems wrong to
CHECK
> > the browser process on reading inconsistent data from disk without ability
to
> > recover. Some bug in former versions of Chrome or a bit flip on disk can
make
> us
> > a query of death.
> > 
> > hopefully range lengths are corrected earlier, +ttuttle, +gavinp on this
> 
> saturated_cast is not checked_cast.  This change does not change the function
of
> the code.

thanks. I just saw a CHECK there and did not dive into details of the template
instantiations. This one seems safe.

Powered by Google App Engine
This is Rietveld 408576698