| 61 | } |
| 62 | |
| 63 | bookmarks::GroupId KmlGroupIdToSearchGroupId(kml::MarkGroupId id) |
| 64 | { |
| 65 | static_assert(is_integral<kml::MarkGroupId>::value, ""); |
| 66 | static_assert(is_integral<bookmarks::GroupId>::value, ""); |
| 67 | |
| 68 | static_assert(is_unsigned<kml::MarkGroupId>::value, ""); |
| 69 | static_assert(is_unsigned<bookmarks::GroupId>::value, ""); |
| 70 | |
| 71 | static_assert(sizeof(bookmarks::GroupId) >= sizeof(kml::MarkGroupId), ""); |
| 72 | |
| 73 | if (id == kml::kInvalidMarkGroupId) |
| 74 | return bookmarks::kInvalidGroupId; |
| 75 | |
| 76 | return base::asserted_cast<bookmarks::GroupId>(id); |
| 77 | } |
| 78 | |
| 79 | kml::MarkId SearchBookmarkIdToKmlMarkId(bookmarks::Id id) |
| 80 | { |
no outgoing calls
no test coverage detected