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_win.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_win.cc')
-rw-r--r-- | chrome/browser/platform_util_win.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/platform_util_win.cc b/chrome/browser/platform_util_win.cc index 38ecb39..567fa15 100644 --- a/chrome/browser/platform_util_win.cc +++ b/chrome/browser/platform_util_win.cc @@ -166,7 +166,7 @@ void OpenExternalOnFileThread(const GURL& url) { namespace platform_util { -void ShowItemInFolder(const base::FilePath& full_path) { +void ShowItemInFolder(Profile* profile, const base::FilePath& full_path) { DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); if (chrome::GetActiveDesktop() == chrome::HOST_DESKTOP_TYPE_ASH) @@ -176,7 +176,7 @@ void ShowItemInFolder(const base::FilePath& full_path) { base::Bind(&ShowItemInFolderOnFileThread, full_path)); } -void OpenItem(const base::FilePath& full_path) { +void OpenItem(Profile* profile, const base::FilePath& full_path) { DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); if (chrome::GetActiveDesktop() == chrome::HOST_DESKTOP_TYPE_ASH) |