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..1756e5f3f514d8fc5ec3e295e901ae872eb9d7d5 100644 |
--- a/chrome/browser/sessions/session_tab_helper.cc |
+++ b/chrome/browser/sessions/session_tab_helper.cc |
@@ -19,9 +19,16 @@ SessionTabHelper::SessionTabHelper(content::WebContents* contents) |
: content::WebContentsObserver(contents) { |
} |
-SessionTabHelper::~SessionTabHelper() { |
+// static |
+void SessionTabHelper::CreateForWebContentsWithId( |
+ content::WebContents* contents, |
+ const SessionID& id) { |
+ CreateForWebContents(contents); |
+ FromWebContents(contents)->session_id_ = id; |
sky
2013/05/21 23:49:44
Could you add a new constructor that this code use
shashi
2013/05/22 00:34:32
Done.
|
} |
+SessionTabHelper::~SessionTabHelper() {} |
+ |
void SessionTabHelper::SetWindowID(const SessionID& id) { |
window_id_ = id; |