Index: chrome/browser/ui/browser_tabrestore.cc |
diff --git a/chrome/browser/ui/browser_tabrestore.cc b/chrome/browser/ui/browser_tabrestore.cc |
index cb184a355fc0d492a050152869b634fc4d379c57..8b44fa7fd9d46701cde66a3ffa3c91bfff604942 100644 |
--- a/chrome/browser/ui/browser_tabrestore.cc |
+++ b/chrome/browser/ui/browser_tabrestore.cc |
@@ -40,21 +40,14 @@ content::WebContents* AddRestoredTab( |
bool select, |
bool pin, |
bool from_last_session, |
- content::SessionStorageNamespace* session_storage_namespace) { |
+ const content::SessionStorageNamespaceMap& storage_namespace_map) { |
GURL restore_url = navigations.at(selected_navigation).virtual_url(); |
- // TODO(ajwong): Remove the temporary session_storage_namespace_map when |
- // we teach session restore to understand that one tab can have multiple |
- // SessionStorageNamespace objects. Also remove the |
- // session_storage_namespace.h include since we only need that to assign |
- // into the map. |
- content::SessionStorageNamespaceMap session_storage_namespace_map; |
- session_storage_namespace_map[""] = session_storage_namespace; |
TabContents* tab_contents = chrome::TabContentsWithSessionStorageFactory( |
browser->profile(), |
tab_util::GetSiteInstanceForNewTab(browser->profile(), restore_url), |
MSG_ROUTING_NONE, |
chrome::GetActiveWebContents(browser), |
- session_storage_namespace_map); |
+ storage_namespace_map); |
WebContents* new_tab = tab_contents->web_contents(); |
tab_contents->extension_tab_helper()->SetExtensionAppById(extension_app_id); |
std::vector<NavigationEntry*> entries; |
@@ -100,21 +93,14 @@ void ReplaceRestoredTab( |
int selected_navigation, |
bool from_last_session, |
const std::string& extension_app_id, |
- content::SessionStorageNamespace* session_storage_namespace) { |
+ const content::SessionStorageNamespaceMap& storage_namespace_map) { |
GURL restore_url = navigations.at(selected_navigation).virtual_url(); |
- // TODO(ajwong): Remove the temporary session_storage_namespace_map when |
- // we teach session restore to understand that one tab can have multiple |
- // SessionStorageNamespace objects. Also remove the |
- // session_storage_namespace.h include since we only need that to assign |
- // into the map. |
- content::SessionStorageNamespaceMap session_storage_namespace_map; |
- session_storage_namespace_map[""] = session_storage_namespace; |
TabContents* tab_contents = chrome::TabContentsWithSessionStorageFactory( |
browser->profile(), |
tab_util::GetSiteInstanceForNewTab(browser->profile(), restore_url), |
MSG_ROUTING_NONE, |
GetActiveWebContents(browser), |
- session_storage_namespace_map); |
+ storage_namespace_map); |
tab_contents->extension_tab_helper()->SetExtensionAppById(extension_app_id); |
WebContents* replacement = tab_contents->web_contents(); |
std::vector<NavigationEntry*> entries; |