| Index: chrome/browser/sync/sessions/sync_session_context.h
|
| diff --git a/chrome/browser/sync/sessions/sync_session_context.h b/chrome/browser/sync/sessions/sync_session_context.h
|
| index 65e431a70e190ac4de6592c694c936b81a26a454..1e37a7cdf6a586e92fb9529851199876e958352a 100644
|
| --- a/chrome/browser/sync/sessions/sync_session_context.h
|
| +++ b/chrome/browser/sync/sessions/sync_session_context.h
|
| @@ -105,6 +105,14 @@ class SyncSessionContext {
|
| previous_session_routing_info_ = info;
|
| }
|
|
|
| + sessions::SyncSessionSnapshot* previous_session_snapshot() {
|
| + return previous_session_snapshot_.get();
|
| + }
|
| +
|
| + void set_last_snapshot(const SyncSessionSnapshot& snapshot) {
|
| + previous_session_snapshot_.reset(new SyncSessionSnapshot(snapshot));
|
| + }
|
| +
|
| 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
|
| @@ -139,6 +147,9 @@ class SyncSessionContext {
|
| // by the user.
|
| ModelSafeRoutingInfo previous_session_routing_info_;
|
|
|
| + // Cache of last session snapshot information.
|
| + scoped_ptr<sessions::SyncSessionSnapshot> previous_session_snapshot_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(SyncSessionContext);
|
| };
|
|
|
|
|