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

Unified Diff: chrome/browser/sessions/session_restore.h

Issue 36473002: Foreign session pages now load into current tab. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ted Created 7 years, 1 month 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_restore.h
diff --git a/chrome/browser/sessions/session_restore.h b/chrome/browser/sessions/session_restore.h
index 4405c4b44d54fe1387c5439de5bfc04c8f4bfd3b..618e5c2478efa5957562a91557492d14930b47c7 100644
--- a/chrome/browser/sessions/session_restore.h
+++ b/chrome/browser/sessions/session_restore.h
@@ -65,7 +65,8 @@ class SessionRestore {
// Specifically used in the restoration of a foreign session. This method
// restores the given session tab to the browser of |source_web_contents| if
// the disposition is not NEW_WINDOW. Returns the WebContents corresponding
- // to the restored tab.
+ // to the restored tab. The Android implementation of this method takes
+ // ownership of |source_web_contents|.
static content::WebContents* RestoreForeignSessionTab(
content::WebContents* source_web_contents,
const SessionTab& tab,

Powered by Google App Engine
This is Rietveld 408576698