I guess I should have been more clear about the scope of this class.
Partner bookmarks should only appear if the consumer is explicitly aware of
their existence. I strongly suspect the only place this will get used is in
android's bookmark NTP handler that needs to expose these partner bookmarks.
If you request the model for a profile, we do not want you to have to worry
about these partner bookmarks at all.
As for traversing, it is only needs to be possible in combination with the
shim.
We expose get_attach_point for consumers to be aware of when they should
inject
these partner bookmarks to the user (i.e. we do this as we are exporting the
model to json for the webui).
On 2012/08/09 15:48:19, sky wrote:
> Is it possible for someone to delete this bookmark after created?
Really the only use case we should support is to allow attaching to
permanent nodes, I'll add a DCHECK for that.
On 2012/08/09 15:48:19, sky wrote:
> 'i=' -> 'i ='
Done.
On 2012/08/09 15:48:19, sky wrote:
> How do you know that a valid bookmark can't end up with this id?
@Ruslan, any reason you chose this number originally?
If not, is there any part of the ID space that is assured to never have
bookmarks? Does the model use any negative IDs?
On 2012/08/09 15:48:19, sky wrote:
> constructor/destructor before other methods.
Done.
On 2012/08/09 15:48:19, sky wrote:
> Add documentation.
Done.
On 2012/08/09 15:48:19, sky wrote:
> I think this class should be a profilekeyedservice and be attached to
a specific
> bookmarkmodel. Much less error prone that way.
will look into that next.
On 2012/08/09 15:48:19, sky wrote:
> This should be a class.
Done.
On 2012/08/09 15:48:19, sky wrote:
> Trivial accessors should be named used unix_hacker_style.
Done.
http://codereview.chromium.org/10834237/