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

Issue 2860016: Adding a mutator method for the private variables. (Closed)

Created:
10 years, 6 months ago by rpetterson
Modified:
9 years, 7 months ago
Reviewers:
apatrick
CC:
chromium-reviews, apatrick_chromium
Visibility:
Public.

Description

Adding a mutator method for the private variables. BUG=38736 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=50666

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -0 lines) Patch
M chrome/gpu/gpu_info.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/gpu/gpu_info_win.cc View 1 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
rpetterson
10 years, 6 months ago (2010-06-23 00:54:14 UTC) #1
apatrick
LGTM http://codereview.chromium.org/2860016/diff/1/2 File chrome/gpu/gpu_info.h (right): http://codereview.chromium.org/2860016/diff/1/2#newcode48 chrome/gpu/gpu_info.h:48: void SetGraphicsInfo(const uint32 vendor_id, const uint32 device_id, We ...
10 years, 6 months ago (2010-06-23 17:10:03 UTC) #2
rpetterson
10 years, 6 months ago (2010-06-23 21:37:33 UTC) #3
Fixed the one item. Thanks for LTGM.

http://codereview.chromium.org/2860016/diff/1/2
File chrome/gpu/gpu_info.h (right):

http://codereview.chromium.org/2860016/diff/1/2#newcode48
chrome/gpu/gpu_info.h:48: void SetGraphicsInfo(const uint32 vendor_id, const
uint32 device_id,
On 2010/06/23 17:10:03, apatrick wrote:
> We don't normally use const on parameters unless its a const reference.
There's
> nothing wrong with it but you might consider consistency. We normally pass
> std::string parameters as const std::string& to avoid a copy.

Fixed to maintain consistency. Thanks for pointing it out.

Powered by Google App Engine
This is Rietveld 408576698