summaryrefslogtreecommitdiffstats
path: root/chrome/browser/platform_util.h
diff options
context:
space:
mode:
authorkinaba@chromium.org <kinaba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-13 09:29:17 +0000
committerkinaba@chromium.org <kinaba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-13 09:29:17 +0000
commit4d225de1816cceef6be266d5253e420341f3f4c9 (patch)
tree5f047e9d851c4af5da8453d3bdc047851ef30860 /chrome/browser/platform_util.h
parent2a5f3f55076eb774be0aa57c8786f2c6e7612d0b (diff)
downloadchromium_src-4d225de1816cceef6be266d5253e420341f3f4c9.zip
chromium_src-4d225de1816cceef6be266d5253e420341f3f4c9.tar.gz
chromium_src-4d225de1816cceef6be266d5253e420341f3f4c9.tar.bz2
Remove GetDefaultProfile() from c/b/cros/file_manager.
This is a part of the effort to get rid of GetDefaultProfile() that doesn't make nice sense in multi-profiled Chrome OS. This CL adds Profile* parameter to functions in platform_util.h, which is the source of all the call site of GetDefaultProfile in file_manager code. BUG=322682 Review URL: https://codereview.chromium.org/104503008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240571 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/platform_util.h')
-rw-r--r--chrome/browser/platform_util.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/platform_util.h b/chrome/browser/platform_util.h
index c2008a1..916f3a3 100644
--- a/chrome/browser/platform_util.h
+++ b/chrome/browser/platform_util.h
@@ -20,12 +20,14 @@ class FilePath;
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.
-void ShowItemInFolder(const base::FilePath& full_path);
+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(const base::FilePath& full_path);
+void OpenItem(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.)