From 4d225de1816cceef6be266d5253e420341f3f4c9 Mon Sep 17 00:00:00 2001 From: "kinaba@chromium.org" Date: Fri, 13 Dec 2013 09:29:17 +0000 Subject: 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 --- chrome/browser/platform_util_chromeos.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'chrome/browser/platform_util_chromeos.cc') 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) { -- cgit v1.1