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

Issue 14022012: Code quality and standards in SimpleBackend. (Closed)

Created:
7 years, 8 months ago by gavinp
Modified:
7 years, 8 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org, pasko-google - do not use, felipeg
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Code quality and standards in SimpleBackend. In the review of https://codereview.chromium.org/13880016/ , rvargas pointed out that we could use WeakPtr safely in the SimpleEntryImpl, even though it's destructed on any thread, since the WeakPtr can be destructed on any thread. As well, he asked for raw pointer function arguments, and some grammar fixes. While I was here, I delinted. R=pliard,rvargas BUG=233103 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=194873

Patch Set 1 #

Patch Set 2 : nousing #

Patch Set 3 : braces #

Total comments: 7

Patch Set 4 : rebase to HEAD #

Patch Set 5 : remediate #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -71 lines) Patch
M net/disk_cache/simple/simple_backend_impl.h View 1 2 3 4 3 chunks +8 lines, -6 lines 0 comments Download
M net/disk_cache/simple/simple_backend_impl.cc View 1 2 3 4 4 chunks +7 lines, -5 lines 0 comments Download
M net/disk_cache/simple/simple_entry_impl.h View 1 2 3 4 3 chunks +7 lines, -6 lines 1 comment Download
M net/disk_cache/simple/simple_entry_impl.cc View 1 8 chunks +25 lines, -18 lines 0 comments Download
M net/disk_cache/simple/simple_index.h View 1 2 3 4 5 chunks +10 lines, -10 lines 0 comments Download
M net/disk_cache/simple/simple_index.cc View 1 2 3 4 5 chunks +10 lines, -11 lines 1 comment Download
M net/disk_cache/simple/simple_index_file.h View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download
M net/disk_cache/simple/simple_synchronous_entry.h View 1 2 3 4 4 chunks +5 lines, -5 lines 0 comments Download
M net/disk_cache/simple/simple_synchronous_entry.cc View 1 2 3 4 6 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
gavinp
pliard, can you please take a look at this fairly quickly? It's going to create ...
7 years, 8 months ago (2013-04-18 09:13:32 UTC) #1
Philippe
Thanks Gavin for the cleanup! Mostly LG but see my comments about TaskRunner. https://codereview.chromium.org/14022012/diff/11002/net/disk_cache/simple/simple_backend_impl.h File ...
7 years, 8 months ago (2013-04-18 09:30:10 UTC) #2
gavinp
OK Philippe, here we are. This is... going to be hard to sync to head... ...
7 years, 8 months ago (2013-04-18 09:46:18 UTC) #3
Philippe
On 2013/04/18 09:46:18, gavinp wrote: > OK Philippe, here we are. > > This is... ...
7 years, 8 months ago (2013-04-18 10:07:16 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gavinp@chromium.org/14022012/21001
7 years, 8 months ago (2013-04-18 10:11:03 UTC) #5
gavinp
Committed patchset #5 manually as r194873 (presubmit successful).
7 years, 8 months ago (2013-04-18 10:21:10 UTC) #6
rvargas (doing something else)
7 years, 8 months ago (2013-04-18 17:31:50 UTC) #7
Message was sent while issue was closed.
lgtm

https://codereview.chromium.org/14022012/diff/21001/net/disk_cache/simple/sim...
File net/disk_cache/simple/simple_entry_impl.h (right):

https://codereview.chromium.org/14022012/diff/21001/net/disk_cache/simple/sim...
net/disk_cache/simple/simple_entry_impl.h:32: 
nit: extra line

https://codereview.chromium.org/14022012/diff/21001/net/disk_cache/simple/sim...
File net/disk_cache/simple/simple_index.cc (right):

https://codereview.chromium.org/14022012/diff/21001/net/disk_cache/simple/sim...
net/disk_cache/simple/simple_index.cc:24: EntryMetadata::EntryMetadata() :
hash_key_(0),
nit: this initializer list has to start on the next line.

Powered by Google App Engine
This is Rietveld 408576698