| 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);
|
| };
|
|
|
|
|