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

Issue 174345: Making RegisterRequest and UnregisterRequest virtual so that they can be over... (Closed)

Created:
11 years, 4 months ago by tommi (sloooow) - chröme
Modified:
9 years, 7 months ago
Reviewers:
amit
CC:
chromium-reviews_googlegroups.com, Ben Goodger (Google)
Visibility:
Public.

Description

Making RegisterRequest and UnregisterRequest virtual so that they can be overriden in derived test classes. Also making the unique id counter static in order to avoid conflicts with id values handed out from base classes. Since the id will be used on the other side of automation, it's not enough to make the id generator function overridable. All request IDs must be unique. R=amit BUG=none TEST=Should be no change. Run automation tests. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=24212

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -5 lines) Patch
M chrome/browser/automation/automation_resource_message_filter.h View 4 chunks +5 lines, -4 lines 5 comments Download
M chrome/browser/automation/automation_resource_message_filter.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
tommi (sloooow) - chröme
11 years, 4 months ago (2009-08-24 21:17:00 UTC) #1
amit
lgtm with following suggestions. http://codereview.chromium.org/174345/diff/1/3 File chrome/browser/automation/automation_resource_message_filter.h (right): http://codereview.chromium.org/174345/diff/1/3#newcode44 Line 44: return base::subtle::Barrier_AtomicIncrement(&unique_request_id_, 1); How ...
11 years, 4 months ago (2009-08-24 22:49:57 UTC) #2
tommi (sloooow) - chröme
http://codereview.chromium.org/174345/diff/1/3 File chrome/browser/automation/automation_resource_message_filter.h (right): http://codereview.chromium.org/174345/diff/1/3#newcode44 Line 44: return base::subtle::Barrier_AtomicIncrement(&unique_request_id_, 1); I did look at that ...
11 years, 4 months ago (2009-08-25 02:13:18 UTC) #3
amit
11 years, 4 months ago (2009-08-25 02:16:46 UTC) #4
ok, go ahead with it :)

On Mon, Aug 24, 2009 at 7:13 PM, <tommi@chromium.org> wrote:
>
> http://codereview.chromium.org/174345/diff/1/3
> File chrome/browser/automation/automation_resource_message_filter.h
> (right):
>
> http://codereview.chromium.org/174345/diff/1/3#newcode44
> Line 44: return
> base::subtle::Barrier_AtomicIncrement(&unique_request_id_, 1);
> I did look at that but there are two reasons why I didn't use it:
> 1) It doesn't return the new incremented value for some reason.
> 2) The header recommends that it not be used:
> // This is a low level implementation of atomic semantics for reference
> // counting. =A0Please use base/ref_counted.h directly instead.
>
> http://codereview.chromium.org/174345/diff/1/3#newcode102
> Line 102: // A unique request id per automation channel.
> On 2009/08/24 22:49:57, amit wrote:
>>
>> no longer unique per channel, pl update the comment
>
> changed to "// A unique request id per process."
>
> http://codereview.chromium.org/174345
>

Powered by Google App Engine
This is Rietveld 408576698