diff options
Diffstat (limited to 'chrome/browser/extensions')
-rw-r--r-- | chrome/browser/extensions/api/sessions/sessions_api.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/extensions/api/sessions/sessions_api.cc b/chrome/browser/extensions/api/sessions/sessions_api.cc index 013afa3..d2e68cf 100644 --- a/chrome/browser/extensions/api/sessions/sessions_api.cc +++ b/chrome/browser/extensions/api/sessions/sessions_api.cc @@ -393,8 +393,9 @@ void SessionsRestoreFunction::SetInvalidIdError(const std::string& invalid_id) { void SessionsRestoreFunction::SetResultRestoredTab( const content::WebContents* contents) { - scoped_ptr<tabs::Tab> tab(tabs::Tab::FromValue( - *ExtensionTabUtil::CreateTabValue(contents, GetExtension()))); + scoped_ptr<DictionaryValue> tab_value( + ExtensionTabUtil::CreateTabValue(contents, GetExtension())); + scoped_ptr<tabs::Tab> tab(tabs::Tab::FromValue(*tab_value)); scoped_ptr<api::sessions::Session> restored_session(CreateSessionModelHelper( base::Time::Now().ToTimeT(), tab.Pass(), |