Chromium Code Reviews| Index: chrome/browser/sessions/session_restore.cc |
| diff --git a/chrome/browser/sessions/session_restore.cc b/chrome/browser/sessions/session_restore.cc |
| index bac5d42bed83ff89c6dc02369a3ea889db74648f..08b5143f0e22e04752d97f5cab7c5b61f9f32af3 100644 |
| --- a/chrome/browser/sessions/session_restore.cc |
| +++ b/chrome/browser/sessions/session_restore.cc |
| @@ -1082,19 +1082,6 @@ class SessionRestoreImpl : public content::NotificationObserver { |
| // focused tab will be loaded by Browser, and TabLoader will load the rest. |
| DCHECK(web_contents->GetController().NeedsReload()); |
| - // Set up the file access rights for the selected navigation entry. |
|
Charlie Reis
2014/11/25 21:00:55
This is now redundant with RenderFrameHostImpl::On
|
| - const int id = web_contents->GetRenderProcessHost()->GetID(); |
| - const content::PageState& page_state = |
| - content::PageState::CreateFromEncodedData( |
| - tab.navigations.at(selected_index).encoded_page_state()); |
| - const std::vector<base::FilePath>& file_paths = |
| - page_state.GetReferencedFiles(); |
| - for (std::vector<base::FilePath>::const_iterator file = file_paths.begin(); |
| - file != file_paths.end(); ++file) { |
| - content::ChildProcessSecurityPolicy::GetInstance()->GrantReadFile(id, |
| - *file); |
| - } |
| - |
| if (!is_selected_tab) |
| tab_loader_->ScheduleLoad(&web_contents->GetController()); |
| return web_contents; |