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

Issue 8840003: Replace ProfileManagerObserver with callback (Closed)

Created:
9 years ago by sail
Modified:
9 years ago
CC:
chromium-reviews, nkostylev+watch_chromium.org, achuith+watch_chromium.org, rginda+watch_chromium.org, Paweł Hajdan Jr., stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Replace ProfileManagerObserver with callback The old ProfileManagerObserver was hard to use since it required a new class or subclassing. Using callbacks is easier. BUG=100461 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=113480

Patch Set 1 #

Patch Set 2 : weakptr #

Total comments: 20

Patch Set 3 : address review comments #

Total comments: 8

Patch Set 4 : address review comments #

Patch Set 5 : fix typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -163 lines) Patch
M chrome/browser/chromeos/login/login_performer.h View 2 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/login/login_performer.cc View 1 2 1 chunk +9 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/login/login_utils.cc View 1 2 5 chunks +14 lines, -10 lines 0 comments Download
M chrome/browser/profiles/avatar_menu_model.cc View 3 chunks +11 lines, -16 lines 0 comments Download
M chrome/browser/profiles/profile.h View 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_manager.h View 1 2 3 4 chunks +17 lines, -36 lines 0 comments Download
M chrome/browser/profiles/profile_manager.cc View 1 2 3 8 chunks +48 lines, -68 lines 0 comments Download
M chrome/browser/profiles/profile_manager_browsertest.cc View 1 2 3 chunks +16 lines, -14 lines 0 comments Download
M chrome/browser/profiles/profile_manager_unittest.cc View 1 2 3 4 5 chunks +23 lines, -10 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
sail
9 years ago (2011-12-07 16:09:46 UTC) #1
Robert Sesek
http://codereview.chromium.org/8840003/diff/1010/chrome/browser/chromeos/login/login_performer.h File chrome/browser/chromeos/login/login_performer.h (right): http://codereview.chromium.org/8840003/diff/1010/chrome/browser/chromeos/login/login_performer.h#newcode55 chrome/browser/chromeos/login/login_performer.h:55: public base::SupportsWeakPtr<LoginUtilsImpl> { This class already holds a WeakPtrFactory ...
9 years ago (2011-12-07 16:36:12 UTC) #2
sail
Thanks for the super quick review! http://codereview.chromium.org/8840003/diff/1010/chrome/browser/chromeos/login/login_performer.h File chrome/browser/chromeos/login/login_performer.h (right): http://codereview.chromium.org/8840003/diff/1010/chrome/browser/chromeos/login/login_performer.h#newcode55 chrome/browser/chromeos/login/login_performer.h:55: public base::SupportsWeakPtr<LoginUtilsImpl> { ...
9 years ago (2011-12-07 17:18:13 UTC) #3
sail
altimofeev, avayvod: chromeos/login OWNERS approval
9 years ago (2011-12-07 17:20:52 UTC) #4
whywhat
altimofeev is on vacation :) lgtm with some nits: http://codereview.chromium.org/8840003/diff/9001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): http://codereview.chromium.org/8840003/diff/9001/chrome/browser/profiles/profile_manager.cc#newcode332 chrome/browser/profiles/profile_manager.cc:332: ...
9 years ago (2011-12-07 17:35:50 UTC) #5
Elliot Glaysher
lgtm
9 years ago (2011-12-07 17:43:11 UTC) #6
Robert Sesek
http://codereview.chromium.org/8840003/diff/1010/chrome/browser/profiles/profile_manager_unittest.cc File chrome/browser/profiles/profile_manager_unittest.cc (right): http://codereview.chromium.org/8840003/diff/1010/chrome/browser/profiles/profile_manager_unittest.cc#newcode119 chrome/browser/profiles/profile_manager_unittest.cc:119: class MockObserver : public base::RefCountedThreadSafe<MockObserver> { On 2011/12/07 17:18:13, ...
9 years ago (2011-12-07 18:07:39 UTC) #7
sail
http://codereview.chromium.org/8840003/diff/1010/chrome/browser/profiles/profile_manager_unittest.cc File chrome/browser/profiles/profile_manager_unittest.cc (right): http://codereview.chromium.org/8840003/diff/1010/chrome/browser/profiles/profile_manager_unittest.cc#newcode119 chrome/browser/profiles/profile_manager_unittest.cc:119: class MockObserver : public base::RefCountedThreadSafe<MockObserver> { On 2011/12/07 18:07:40, ...
9 years ago (2011-12-07 18:34:04 UTC) #8
Robert Sesek
lgtm
9 years ago (2011-12-07 19:34:47 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/8840003/12004
9 years ago (2011-12-07 20:09:35 UTC) #10
commit-bot: I haz the power
9 years ago (2011-12-07 22:14:02 UTC) #11
Change committed as 113480

Powered by Google App Engine
This is Rietveld 408576698