| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/file_select_helper.h" | 5 #include "chrome/browser/file_select_helper.h" |
| 6 | 6 |
| 7 #include <Cocoa/Cocoa.h> | 7 #include <Cocoa/Cocoa.h> |
| 8 #include <sys/stat.h> | 8 #include <sys/stat.h> |
| 9 | 9 |
| 10 #include "base/files/file.h" | 10 #include "base/files/file.h" |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 // Typically, |temporary_files| are deleted after |web_contents_| is | 131 // Typically, |temporary_files| are deleted after |web_contents_| is |
| 132 // destroyed. If |web_contents_| is already NULL, then the temporary files | 132 // destroyed. If |web_contents_| is already NULL, then the temporary files |
| 133 // need to be deleted now. | 133 // need to be deleted now. |
| 134 if (!web_contents_) { | 134 if (!web_contents_) { |
| 135 DeleteTemporaryFiles(); | 135 DeleteTemporaryFiles(); |
| 136 RunFileChooserEnd(); | 136 RunFileChooserEnd(); |
| 137 return; | 137 return; |
| 138 } | 138 } |
| 139 } | 139 } |
| 140 | 140 |
| 141 NotifyRenderViewHostAndEnd(files); | 141 ProcessSelectedFiles(files); |
| 142 } | 142 } |
| OLD | NEW |