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

Unified Diff: sync/sessions/sync_session_context.h

Issue 1849563005: [Sync] Add cookie jar mismatch logging (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests again Created 4 years, 8 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 | « sync/protocol/sync.proto ('k') | sync/sessions/sync_session_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/sessions/sync_session_context.h
diff --git a/sync/sessions/sync_session_context.h b/sync/sessions/sync_session_context.h
index 194ce4632fec3d8aa761aa0ac4f5373b0689f7f9..5c61832d41072df5e45840d9c7d5a1db3d3e6231 100644
--- a/sync/sessions/sync_session_context.h
+++ b/sync/sessions/sync_session_context.h
@@ -126,6 +126,14 @@ class SYNC_EXPORT SyncSessionContext {
return model_type_registry_;
}
+ bool cookie_jar_mismatch() const {
+ return cookie_jar_mismatch_;
+ }
+
+ void set_cookie_jar_mismatch(bool cookie_jar_mismatch) {
+ cookie_jar_mismatch_ = cookie_jar_mismatch;
+ }
+
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
@@ -180,6 +188,11 @@ class SYNC_EXPORT SyncSessionContext {
// enable the pre-commit update avoidance experiment described above.
const bool client_enabled_pre_commit_update_avoidance_;
+ // Whether the account(s) present in the content area's cookie jar match the
+ // chrome account. If multiple accounts are present in the cookie jar, a
+ // mismatch implies all of them are different from the chrome account.
+ bool cookie_jar_mismatch_;
+
DISALLOW_COPY_AND_ASSIGN(SyncSessionContext);
};
« no previous file with comments | « sync/protocol/sync.proto ('k') | sync/sessions/sync_session_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698