Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Unified Diff: apps/app_shim/extension_app_shim_handler_mac.cc

Issue 17524003: Fix ProfileForPath in ExtensionAppShimHandler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/app_shim/extension_app_shim_handler_mac.cc
diff --git a/apps/app_shim/extension_app_shim_handler_mac.cc b/apps/app_shim/extension_app_shim_handler_mac.cc
index 95169b783497ee9631fdbbe449920e730d3d701a..21edc8a502e04e2374095ca19ae04ff4bde28feb 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()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698