Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(145)

Issue 5754080: Start moving FinancialPing over to the cross-platform part. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 1 month ago by thakis
Modified:
13 years ago
CC:
rlz-codereviews_googlegroups.com
Base URL:
http://rlz.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Start moving FinancialPing over to the cross-platform part. Since FinancialPing is fairly intertwined with rlz_lib.cc, add a few stub methods on mac to keep this patch small for now. Move all the enums in rlz_lib.h (which is still windows-only) into a new file lib/rlz_enums.h. Introduce lib/rlz_value_store, which will slowly grow more methods to abstract away all registry reads. rlz_lib.cc will talk only to RlzValueStore, and the windows implementation of that file will write to the registry. Give this class 4 methods as proof-of-concept for now, just enough to move FinancialPing over. Don't move financial_ping_test.cc yet, as it more or less relies on everything working to pass (it calls several functions from rlz_lib.cc). landed in r72

Patch Set 1 #

Total comments: 14

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : . #

Patch Set 6 : windows compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+434 lines, -532 lines) Patch
A + lib/financial_ping.h View 1 3 chunks +8 lines, -7 lines 0 comments Download
A + lib/financial_ping.cc View 1 2 3 4 5 12 chunks +54 lines, -58 lines 0 comments Download
A lib/rlz_enums.h View 1 chunk +132 lines, -0 lines 0 comments Download
A lib/rlz_value_store.h View 1 2 1 chunk +59 lines, -0 lines 0 comments Download
A mac/lib/rlz_value_store_mac.h View 1 2 1 chunk +30 lines, -0 lines 0 comments Download
A mac/lib/rlz_value_store_mac.mm View 1 2 1 chunk +42 lines, -0 lines 0 comments Download
M rlz.gyp View 2 chunks +12 lines, -2 lines 0 comments Download
D win/lib/financial_ping.h View 1 chunk +0 lines, -53 lines 0 comments Download
D win/lib/financial_ping.cc View 1 chunk +0 lines, -290 lines 0 comments Download
M win/lib/financial_ping_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M win/lib/rlz_lib.h View 2 chunks +2 lines, -120 lines 0 comments Download
M win/lib/rlz_lib.cc View 1 chunk +1 line, -1 line 0 comments Download
A win/lib/rlz_value_store_registry.h View 1 2 3 4 5 1 chunk +31 lines, -0 lines 0 comments Download
A win/lib/rlz_value_store_registry.cc View 1 2 3 4 5 1 chunk +62 lines, -0 lines 0 comments Download

Messages

Total messages: 9
thakis
https://codereview.appspot.com/5754080/diff/1/lib/financial_ping.cc File lib/financial_ping.cc (left): https://codereview.appspot.com/5754080/diff/1/lib/financial_ping.cc#oldcode71 lib/financial_ping.cc:71: LibMutex lock; As far as I could tell, this ...
13 years, 1 month ago (2012-03-11 22:25:15 UTC) #1
Roger Tawa (Google)
Thanks for all the work Nico. A few comments below. https://codereview.appspot.com/5754080/diff/1/lib/financial_ping.cc File lib/financial_ping.cc (left): https://codereview.appspot.com/5754080/diff/1/lib/financial_ping.cc#oldcode71 ...
13 years, 1 month ago (2012-03-12 16:31:04 UTC) #2
thakis
Thanks for the quick review! https://codereview.appspot.com/5754080/diff/1/lib/financial_ping.cc File lib/financial_ping.cc (left): https://codereview.appspot.com/5754080/diff/1/lib/financial_ping.cc#oldcode71 lib/financial_ping.cc:71: LibMutex lock; On 2012/03/12 ...
13 years, 1 month ago (2012-03-12 16:46:48 UTC) #3
Roger Tawa (Google)
https://codereview.appspot.com/5754080/diff/1/lib/financial_ping.cc File lib/financial_ping.cc (left): https://codereview.appspot.com/5754080/diff/1/lib/financial_ping.cc#oldcode71 lib/financial_ping.cc:71: LibMutex lock; On 2012/03/12 16:46:48, thakis wrote: > On ...
13 years, 1 month ago (2012-03-12 17:03:26 UTC) #4
thakis
Doh, forgot to publish draft comments :-/ https://codereview.appspot.com/5754080/diff/1/lib/financial_ping.cc File lib/financial_ping.cc (left): https://codereview.appspot.com/5754080/diff/1/lib/financial_ping.cc#oldcode71 lib/financial_ping.cc:71: LibMutex lock; ...
13 years, 1 month ago (2012-03-12 18:52:13 UTC) #5
Roger Tawa (Google)
https://codereview.appspot.com/5754080/diff/1/lib/financial_ping.cc File lib/financial_ping.cc (left): https://codereview.appspot.com/5754080/diff/1/lib/financial_ping.cc#oldcode71 lib/financial_ping.cc:71: LibMutex lock; On 2012/03/12 18:52:13, thakis wrote: > > ...
13 years, 1 month ago (2012-03-12 19:31:35 UTC) #6
thakis
Added the ScopedRlzValueStore concept as discussed. Please take another look.
13 years, 1 month ago (2012-03-12 20:17:36 UTC) #7
Roger Tawa (Google)
lgtm Thanks Nico. One comment below. Can you run the windows unit tests before committing? ...
13 years, 1 month ago (2012-03-13 17:24:39 UTC) #8
thakis
13 years, 1 month ago (2012-03-13 17:56:32 UTC) #9
Thanks! Tests pass, I'll land this once codesite's svn is back up.

http://codereview.appspot.com/5754080/diff/3032/win/lib/rlz_value_store_regis...
File win/lib/rlz_value_store_registry.cc (right):

http://codereview.appspot.com/5754080/diff/3032/win/lib/rlz_value_store_regis...
win/lib/rlz_value_store_registry.cc:52: return false;
On 2012/03/13 17:24:39, rogerta wrote:
> Is it necessary to have the local locks in the method implementations?

No, because RlzValueStoreRegistry methods are always guarded by the
ScopedRlzValueLock. I forgot to remove this, done now.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b