Chromium Code Reviews
Description[NTP Snippets] Refactor home-grown container API
The service was originally a much simpler class but it nowadays doesn't
make sense to expose home-grown begin/end/size signatures.
The only downside is that constness is lost for exposed snippets due
to std::unique_ptr exposing non-const raw pointers. The alternative is
std::reference_wrapper which is not yet allowed by the style guide, but
the issue is not important enough to maintain inner_iterator.h.
BUG=584428
Committed: https://crrev.com/8c7889b1c478cbe766a57cd14845ba0bbd16a936
Cr-Commit-Position: refs/heads/master@{#392631}
Patch Set 1 #Patch Set 2 : Removed broken test. #
Total comments: 2
Patch Set 3 : Used front() instead of begin(). #Patch Set 4 : Moved getters up as suggested. #Patch Set 5 : Updated client code. #
Total comments: 4
Patch Set 6 : Avoided auto as suggested. #Messages
Total messages: 19 (8 generated)
|