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

Issue 10828424: mac/rlz: Remove an incorrect check (Closed)

Created:
8 years, 4 months ago by Nico
Modified:
8 years, 4 months ago
Reviewers:
Mark Mentovai
CC:
chromium-reviews
Visibility:
Public.

Description

mac/rlz: Remove an incorrect check As a comment in the ScopedRlzValueStoreLock destructor explains: // Check that "store_ set" => "file_lock acquired". The converse isn't true, // for example if the rlz data file can't be read. So don't CHECK when that happens, instead treat it like lock acquisition failures: Silently drop events when that happens. I added a unit test for this scenario. Also pass O_RDWR to open(), as posix requires one of O_READ, O_WRITE, or O_RDWR. BUG=143950 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=152659

Patch Set 1 #

Total comments: 7

Patch Set 2 : . #

Total comments: 1

Patch Set 3 : indent #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -5 lines) Patch
M rlz/lib/rlz_lib_test.cc View 1 2 2 chunks +19 lines, -0 lines 0 comments Download
M rlz/lib/rlz_value_store.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M rlz/mac/lib/rlz_value_store_mac.mm View 4 chunks +13 lines, -5 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Nico
I'm not sure why this CHECK started firing only after my flock change, it should've ...
8 years, 4 months ago (2012-08-21 20:43:44 UTC) #1
Mark Mentovai
https://chromiumcodereview.appspot.com/10828424/diff/1/rlz/lib/rlz_lib_test.cc File rlz/lib/rlz_lib_test.cc (right): https://chromiumcodereview.appspot.com/10828424/diff/1/rlz/lib/rlz_lib_test.cc#newcode33 rlz/lib/rlz_lib_test.cc:33: } Nico wrote: > This is a bit gross, ...
8 years, 4 months ago (2012-08-21 20:59:29 UTC) #2
Nico
https://chromiumcodereview.appspot.com/10828424/diff/1/rlz/lib/rlz_lib_test.cc File rlz/lib/rlz_lib_test.cc (right): https://chromiumcodereview.appspot.com/10828424/diff/1/rlz/lib/rlz_lib_test.cc#newcode33 rlz/lib/rlz_lib_test.cc:33: } On 2012/08/21 20:59:29, Mark Mentovai wrote: > Nico ...
8 years, 4 months ago (2012-08-21 21:05:03 UTC) #3
Mark Mentovai
LGTM https://chromiumcodereview.appspot.com/10828424/diff/5001/rlz/lib/rlz_lib_test.cc File rlz/lib/rlz_lib_test.cc (right): https://chromiumcodereview.appspot.com/10828424/diff/5001/rlz/lib/rlz_lib_test.cc#newcode885 rlz/lib/rlz_lib_test.cc:885: 0500); Fix indentation (I mentioned this already).
8 years, 4 months ago (2012-08-21 21:06:17 UTC) #4
Nico
Thanks! Fixed the indent. On Tue, Aug 21, 2012 at 2:06 PM, <mark@chromium.org> wrote: > ...
8 years, 4 months ago (2012-08-21 21:08:29 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thakis@chromium.org/10828424/2002
8 years, 4 months ago (2012-08-21 21:08:41 UTC) #6
commit-bot: I haz the power
8 years, 4 months ago (2012-08-21 22:53:56 UTC) #7
Change committed as 152659

Powered by Google App Engine
This is Rietveld 408576698