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

Unified Diff: chrome/browser/sessions/session_tab_helper.cc

Issue 15055003: Do not submit: high level overview patch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix build. Created 7 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: chrome/browser/sessions/session_tab_helper.cc
diff --git a/chrome/browser/sessions/session_tab_helper.cc b/chrome/browser/sessions/session_tab_helper.cc
index 2314afdfe737314292971203a05a1e490ae6a90b..c57b8d11ef51004ac815d98e6a4e86849aae30d9 100644
--- a/chrome/browser/sessions/session_tab_helper.cc
+++ b/chrome/browser/sessions/session_tab_helper.cc
@@ -16,11 +16,16 @@
DEFINE_WEB_CONTENTS_USER_DATA_KEY(SessionTabHelper);
SessionTabHelper::SessionTabHelper(content::WebContents* contents)
- : content::WebContentsObserver(contents) {
-}
+ : content::WebContentsObserver(contents), sync_session_id_(-1) {}
+void SessionTabHelper::SetSessionId(const SessionID& id) { session_id_ = id; }
SessionTabHelper::~SessionTabHelper() {
}
+void SessionTabHelper::SetSessionSyncId(const int64 sync_id) {
+
+ DCHECK(sync_id >= -1);
+ sync_session_id_ = sync_id;
+}
void SessionTabHelper::SetWindowID(const SessionID& id) {
window_id_ = id;

Powered by Google App Engine
This is Rietveld 408576698