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

Unified Diff: net/cookies/cookie_store.cc

Issue 1818603002: Keep track of ChannelIDService in CookieStore (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add DCHECK Created 4 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
Index: net/cookies/cookie_store.cc
diff --git a/net/cookies/cookie_store.cc b/net/cookies/cookie_store.cc
index 85f01929270960ad581f3dc58bfa23665abb884c..f9cfacd42de46794bbd5cd82f0627d545ece5732 100644
--- a/net/cookies/cookie_store.cc
+++ b/net/cookies/cookie_store.cc
@@ -60,6 +60,15 @@ void CookieStore::GetAllCookiesForURLAsync(
GetCookieListWithOptionsAsync(url, options, callback);
}
-CookieStore::CookieStore() {}
+void CookieStore::SetChannelIDServiceID(int id) {
+ DCHECK_EQ(-1, channel_id_service_id_);
+ channel_id_service_id_ = id;
+}
+
+int CookieStore::GetChannelIDServiceID() {
+ return channel_id_service_id_;
+}
+
+CookieStore::CookieStore() : channel_id_service_id_(-1) {}
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698