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

Unified Diff: sync/sessions/sync_session_context.h

Issue 1991973002: [Sync] Add histograms for cookie jar state on Sessions commit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Self review Created 4 years, 7 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: sync/sessions/sync_session_context.h
diff --git a/sync/sessions/sync_session_context.h b/sync/sessions/sync_session_context.h
index 5c61832d41072df5e45840d9c7d5a1db3d3e6231..5a4ff429bcbaf45d5d2dee980ff1624203faa03b 100644
--- a/sync/sessions/sync_session_context.h
+++ b/sync/sessions/sync_session_context.h
@@ -134,6 +134,14 @@ class SYNC_EXPORT SyncSessionContext {
cookie_jar_mismatch_ = cookie_jar_mismatch;
}
+ bool cookie_jar_empty() const {
+ return cookie_jar_empty_;
+ }
+
+ void set_cookie_jar_empty(bool empty_jar) {
+ cookie_jar_empty_ = empty_jar;
+ }
+
private:
// Rather than force clients to set and null-out various context members, we
// extend our encapsulation boundary to scoped helpers that take care of this
@@ -193,6 +201,9 @@ class SYNC_EXPORT SyncSessionContext {
// mismatch implies all of them are different from the chrome account.
bool cookie_jar_mismatch_;
+ // If there's a cookie jar mismatch, whether the cookie jar was empty or not.
+ bool cookie_jar_empty_;
+
DISALLOW_COPY_AND_ASSIGN(SyncSessionContext);
};

Powered by Google App Engine
This is Rietveld 408576698