Chromium Code Reviews| Index: chrome/browser/platform_util.h |
| diff --git a/chrome/browser/platform_util.h b/chrome/browser/platform_util.h |
| index 916f3a307c78cb99af4dae2f82191483985a8475..bc4fa4aac921d1f580cfe5f8c2b0fb43ff36a013 100644 |
| --- a/chrome/browser/platform_util.h |
| +++ b/chrome/browser/platform_util.h |
| @@ -22,12 +22,18 @@ namespace platform_util { |
| // Show the given file in a file manager. If possible, select the file. |
| // The |profile| is used to determine the running profile of file manager app |
| // in Chrome OS only. Not used in other platforms. |
| -// Must be called from the UI thread. |
| +// Must be called on the UI thread. |
| void ShowItemInFolder(Profile* profile, const base::FilePath& full_path); |
| -// Open the given file in the desktop's default manner. |
| -// Must be called from the UI thread. |
| -void OpenItem(Profile* profile, const base::FilePath& full_path); |
| +// Opens the given file in the desktop's default manner. |full_path| must point |
| +// to an existing file. If |full_path| doesn't refer to an existing file, then |
|
James Hawkins
2014/09/29 21:09:14
This secondary condition "If ... doesn't refer to
asanka
2014/09/30 23:07:46
Yup. I updated the comments for ShowItemInFolder()
|
| +// no action will be taken. Must be called on the UI thread. |
| +void OpenFile(Profile* profile, const base::FilePath& full_path); |
| + |
| +// Opens the given folder in the file manager. No action will be taken if |
|
James Hawkins
2014/09/29 21:09:14
Why do we not say anything about |full_path| point
James Hawkins
2014/09/29 21:09:14
What is the 'file manager'? Perhaps we should be
asanka
2014/09/30 23:07:46
Comment updated.
asanka
2014/09/30 23:07:46
Comment updated.
|
| +// |full_path| does not refer to an existing folder. Must be called on the UI |
| +// thread. |
| +void OpenFolder(Profile* profile, const base::FilePath& full_path); |
| // Open the given external protocol URL in the desktop's default manner. |
| // (For example, mailto: URLs in the default mail user agent.) |