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

Issue 12077006: bookmarks: Convert ProfileImpl to use BaseBookmarkModelObserver. (Closed)

Created:
7 years, 11 months ago by tfarina
Modified:
7 years, 10 months ago
Reviewers:
sail, sky
CC:
chromium-reviews, sail+watch_chromium.org
Visibility:
Public.

Description

bookmarks: Convert ProfileImpl to use BaseBookmarkModelObserver. That way we can remove the usage of chrome::NOTIFICATION_BOOKMARK_MODEL_LOADED, and just register it using BookmarkModel::AddObserver/RemoveObserver API. BUG=144783 R=sky@chromium.org,sail@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=179101

Patch Set 1 #

Patch Set 2 : move to a separate object #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -8 lines) Patch
M chrome/browser/profiles/profile_impl.cc View 1 4 chunks +33 lines, -8 lines 1 comment Download

Messages

Total messages: 14 (0 generated)
tfarina
7 years, 11 months ago (2013-01-25 22:21:05 UTC) #1
sky
I think I would move this off to a standalone object, but I'l leave that ...
7 years, 11 months ago (2013-01-25 23:38:50 UTC) #2
sail
Hi Thiago, what's the motivation of using a model observer instead of a notification? Reading ...
7 years, 11 months ago (2013-01-26 00:15:11 UTC) #3
sky
On Fri, Jan 25, 2013 at 4:15 PM, <sail@chromium.org> wrote: > Hi Thiago, what's the ...
7 years, 11 months ago (2013-01-26 00:17:26 UTC) #4
sail
On 2013/01/26 00:17:26, sky wrote: > On Fri, Jan 25, 2013 at 4:15 PM, <mailto:sail@chromium.org> ...
7 years, 11 months ago (2013-01-26 00:23:28 UTC) #5
tfarina
For the motivation it is: - For BookmarkModel to not have two ways of firing ...
7 years, 11 months ago (2013-01-26 01:12:22 UTC) #6
sail
On 2013/01/26 01:12:22, tfarina wrote: > For the motivation it is: > > - For ...
7 years, 11 months ago (2013-01-26 01:16:58 UTC) #7
tfarina
Sail, mind take another look at patch set 2? I implemented Scott's suggestion and moved ...
7 years, 11 months ago (2013-01-26 02:45:12 UTC) #8
sail
LGTM
7 years, 11 months ago (2013-01-26 03:05:09 UTC) #9
tfarina
For the motivation it is: - don't have to ways to register for that event. ...
7 years, 11 months ago (2013-01-26 13:20:48 UTC) #10
tfarina
Oh, please, ignore my last message. It was a draft I had on my iPhone. ...
7 years, 11 months ago (2013-01-26 14:04:27 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tfarina@chromium.org/12077006/9001
7 years, 10 months ago (2013-01-28 02:55:02 UTC) #12
commit-bot: I haz the power
Change committed as 179101
7 years, 10 months ago (2013-01-28 04:39:05 UTC) #13
sky
7 years, 10 months ago (2013-01-28 20:28:56 UTC) #14
Message was sent while issue was closed.
https://codereview.chromium.org/12077006/diff/9001/chrome/browser/profiles/pr...
File chrome/browser/profiles/profile_impl.cc (right):

https://codereview.chromium.org/12077006/diff/9001/chrome/browser/profiles/pr...
chrome/browser/profiles/profile_impl.cc:240: explicit
BookmarkModelLoadedObserver(Profile* profile);
You should also delete this if you get BookmarkModelBeingDeleted.

Powered by Google App Engine
This is Rietveld 408576698