diff options
author | jackhou@chromium.org <jackhou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-21 06:23:50 +0000 |
---|---|---|
committer | jackhou@chromium.org <jackhou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-21 06:23:50 +0000 |
commit | e9bbfd0efed12b8115cf25626877c5894c7173be (patch) | |
tree | 776fa80c509d31b0b2ae99f754e1be0029acf58e /apps | |
parent | 06026b7a338971ce7051bb83caa2465ca44fba52 (diff) | |
download | chromium_src-e9bbfd0efed12b8115cf25626877c5894c7173be.zip chromium_src-e9bbfd0efed12b8115cf25626877c5894c7173be.tar.gz chromium_src-e9bbfd0efed12b8115cf25626877c5894c7173be.tar.bz2 |
Fix ProfileForPath in ExtensionAppShimHandler.
Broke this in http://crrev.com/17366002
ProfileManager::GetProfile() takes the full path to the profile, not the
base name.
BUG=168080
Review URL: https://chromiumcodereview.appspot.com/17524003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207733 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_shim/extension_app_shim_handler_mac.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/app_shim/extension_app_shim_handler_mac.cc b/apps/app_shim/extension_app_shim_handler_mac.cc index 95169b7..21edc8a 100644 --- a/apps/app_shim/extension_app_shim_handler_mac.cc +++ b/apps/app_shim/extension_app_shim_handler_mac.cc @@ -57,7 +57,9 @@ bool ExtensionAppShimHandler::ProfileManagerFacade::ProfileExistsForPath( Profile* ExtensionAppShimHandler::ProfileManagerFacade::ProfileForPath( const base::FilePath& path) { - return g_browser_process->profile_manager()->GetProfile(path); + ProfileManager* profile_manager = g_browser_process->profile_manager(); + base::FilePath full_path = profile_manager->user_data_dir().Append(path); + return profile_manager->GetProfile(full_path); } ExtensionAppShimHandler::ExtensionAppShimHandler() |