diff options
author | kinaba@chromium.org <kinaba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-13 09:29:17 +0000 |
---|---|---|
committer | kinaba@chromium.org <kinaba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-13 09:29:17 +0000 |
commit | 4d225de1816cceef6be266d5253e420341f3f4c9 (patch) | |
tree | 5f047e9d851c4af5da8453d3bdc047851ef30860 /chrome/browser/platform_util_chromeos.cc | |
parent | 2a5f3f55076eb774be0aa57c8786f2c6e7612d0b (diff) | |
download | chromium_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_chromeos.cc')
-rw-r--r-- | chrome/browser/platform_util_chromeos.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/platform_util_chromeos.cc b/chrome/browser/platform_util_chromeos.cc index 8824183..fc1a476 100644 --- a/chrome/browser/platform_util_chromeos.cc +++ b/chrome/browser/platform_util_chromeos.cc @@ -20,14 +20,14 @@ const char kGmailComposeUrl[] = namespace platform_util { -void ShowItemInFolder(const base::FilePath& full_path) { +void ShowItemInFolder(Profile* profile, const base::FilePath& full_path) { DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); - file_manager::util::ShowItemInFolder(full_path); + file_manager::util::ShowItemInFolder(profile, full_path); } -void OpenItem(const base::FilePath& full_path) { +void OpenItem(Profile* profile, const base::FilePath& full_path) { DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); - file_manager::util::OpenItem(full_path); + file_manager::util::OpenItem(profile, full_path); } void OpenExternal(Profile* profile, const GURL& url) { |