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

Unified Diff: components/offline_items_collection/core/offline_item.cc

Issue 2768953002: Initial work to move downloads to ContentIds (Closed)
Patch Set: Rebase because of a conflict... with a single. import. :( Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/offline_items_collection/core/offline_item.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/offline_items_collection/core/offline_item.cc
diff --git a/components/offline_items_collection/core/offline_item.cc b/components/offline_items_collection/core/offline_item.cc
index 81d47ea07d08fef31b693fd5285d5a10bc7ac188..4d4e03b8bc9a15f5869bccaca53b2732a095ff4a 100644
--- a/components/offline_items_collection/core/offline_item.cc
+++ b/components/offline_items_collection/core/offline_item.cc
@@ -11,7 +11,9 @@ ContentId::ContentId() = default;
ContentId::ContentId(const ContentId& other) = default;
ContentId::ContentId(const std::string& name_space, const std::string& id)
- : name_space(name_space), id(id) {}
+ : name_space(name_space), id(id) {
+ DCHECK_EQ(std::string::npos, name_space.find_first_of(","));
+}
ContentId::~ContentId() = default;
« no previous file with comments | « components/offline_items_collection/core/offline_item.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698