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

Issue 7493061: cros: Apply the Init() model to BrightnessLibrary API. (Closed)

Created:
9 years, 4 months ago by tfarina
Modified:
9 years, 4 months ago
Reviewers:
stevenjb
CC:
chromium-reviews, davemoore+watch_chromium.org
Visibility:
Public.

Description

cros: Apply the Init() model to BrightnessLibrary API. This applies the model introduced here http://codereview.chromium.org/7524014/, at revision r94482. Init() should not get called in the constructor, it should get called from GetImpl(). Also, move the EnsureLoaded() check into Init() surrounding the libcros call. BUG=None TEST=None R=stevenjb@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=94769

Patch Set 1 : #

Total comments: 4

Patch Set 2 : CHECK #

Patch Set 3 : brightness_connection_ is a typedef to a pointer allocated on the heap #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -24 lines) Patch
M chrome/browser/chromeos/cros/brightness_library.h View 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/cros/brightness_library.cc View 1 2 5 chunks +25 lines, -22 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
tfarina
9 years, 4 months ago (2011-07-28 21:48:13 UTC) #1
stevenjb
http://codereview.chromium.org/7493061/diff/1003/chrome/browser/chromeos/cros/brightness_library.cc File chrome/browser/chromeos/cros/brightness_library.cc (right): http://codereview.chromium.org/7493061/diff/1003/chrome/browser/chromeos/cros/brightness_library.cc#newcode19 chrome/browser/chromeos/cros/brightness_library.cc:19: BrightnessLibraryImpl() {} Still need to initialize brightness_connection_ to NULL ...
9 years, 4 months ago (2011-07-29 19:19:15 UTC) #2
tfarina
http://codereview.chromium.org/7493061/diff/1003/chrome/browser/chromeos/cros/brightness_library.cc File chrome/browser/chromeos/cros/brightness_library.cc (right): http://codereview.chromium.org/7493061/diff/1003/chrome/browser/chromeos/cros/brightness_library.cc#newcode19 chrome/browser/chromeos/cros/brightness_library.cc:19: BrightnessLibraryImpl() {} On 2011/07/29 19:19:15, Steven Bennetts wrote: > ...
9 years, 4 months ago (2011-07-29 19:44:22 UTC) #3
stevenjb
On 2011/07/29 19:44:22, tfarina wrote: > http://codereview.chromium.org/7493061/diff/1003/chrome/browser/chromeos/cros/brightness_library.cc > File chrome/browser/chromeos/cros/brightness_library.cc (right): > > http://codereview.chromium.org/7493061/diff/1003/chrome/browser/chromeos/cros/brightness_library.cc#newcode19 > ...
9 years, 4 months ago (2011-07-29 19:56:30 UTC) #4
tfarina
On 2011/07/29 19:56:30, Steven Bennetts wrote: > I don't understand. Maybe I missed this in ...
9 years, 4 months ago (2011-07-29 20:17:59 UTC) #5
stevenjb
9 years, 4 months ago (2011-07-29 20:26:08 UTC) #6
LGTM
Thanks again for doing this cleanup!

Powered by Google App Engine
This is Rietveld 408576698