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

Issue 6599004: Modify ThreadChecker and NonThreadSafe so that their functionality is (Closed)

Created:
9 years, 10 months ago by Jói
Modified:
9 years, 7 months ago
Reviewers:
brettw
CC:
chromium-reviews, cbentzel+watch_chromium.org, Paweł Hajdan Jr., darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Modify ThreadChecker and NonThreadSafe so that their functionality is available in release builds if explicitly requested by using their Impl types. The default usage remains that they do nothing in release mode. Also, update unit tests to run in release mode, verifying that the release versions of NonThreadSafe and ThreadChecker do nothing in release builds. BUG=none TEST=base unit tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=76833

Patch Set 1 #

Patch Set 2 : cleaning up stuff I merged by accident #

Patch Set 3 : Complete the change, remove copy in URLRequestThrottlerManager. #

Patch Set 4 : Remove private copy in URLRequestThrottlerManager. Remove forward decls. Fix includes for release. #

Patch Set 5 : rebase to current lkgr #

Total comments: 1

Patch Set 6 : New structure, no header bload, allows forward defs. Also, release unit tests. #

Patch Set 7 : CHECK instead of DCHECK so release builds would break if behavior wrong. #

Patch Set 8 : merge to head #

Patch Set 9 : update copyright year for new/moved files #

Unified diffs Side-by-side diffs Delta from patch set Stats (+265 lines, -219 lines) Patch
M base/base.gypi View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download
M base/threading/non_thread_safe.h View 1 2 3 4 5 2 chunks +22 lines, -29 lines 0 comments Download
D base/threading/non_thread_safe.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -28 lines 0 comments Download
A base/threading/non_thread_safe_impl.h View 1 2 3 4 5 6 7 8 1 chunk +39 lines, -0 lines 0 comments Download
A base/threading/non_thread_safe_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +23 lines, -0 lines 0 comments Download
M base/threading/non_thread_safe_unittest.cc View 1 2 3 4 5 6 3 chunks +45 lines, -24 lines 0 comments Download
M base/threading/thread_checker.h View 1 2 3 4 5 2 chunks +23 lines, -37 lines 0 comments Download
A base/threading/thread_checker_impl.h View 1 2 3 4 5 6 7 8 1 chunk +43 lines, -0 lines 0 comments Download
A + base/threading/thread_checker_impl.cc View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -12 lines 0 comments Download
M base/threading/thread_checker_unittest.cc View 1 2 3 4 5 6 3 chunks +49 lines, -28 lines 0 comments Download
M net/url_request/url_request_throttler_manager.h View 1 2 3 4 5 2 chunks +2 lines, -27 lines 0 comments Download
M net/url_request/url_request_throttler_manager.cc View 1 2 3 4 5 2 chunks +7 lines, -32 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Jói
As we had discussed briefly; what do you think? There are other ways to do ...
9 years, 9 months ago (2011-03-01 21:59:17 UTC) #1
brettw
http://codereview.chromium.org/6599004/diff/6001/net/disk_cache/block_files.h File net/disk_cache/block_files.h (left): http://codereview.chromium.org/6599004/diff/6001/net/disk_cache/block_files.h#oldcode20 net/disk_cache/block_files.h:20: class ThreadChecker; It kind of sucks we lose the ...
9 years, 9 months ago (2011-03-03 17:39:43 UTC) #2
Jói
Please take another look, I've modified the structure to remove header bloat and the issue ...
9 years, 9 months ago (2011-03-03 19:06:53 UTC) #3
brettw
9 years, 9 months ago (2011-03-03 22:08:42 UTC) #4
LGTM

Powered by Google App Engine
This is Rietveld 408576698