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

Unified Diff: chrome/common/chrome_paths_internal.h

Issue 12663023: [mac] Make app shims look in the correct user data dir on Canary. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
Index: chrome/common/chrome_paths_internal.h
diff --git a/chrome/common/chrome_paths_internal.h b/chrome/common/chrome_paths_internal.h
index 5f9b18b9e13ae0f187543962562524a5b14d408f..a5833cc33c6e3dd0651676a474e807d23c981d85 100644
--- a/chrome/common/chrome_paths_internal.h
+++ b/chrome/common/chrome_paths_internal.h
@@ -92,6 +92,12 @@ bool GetGlobalApplicationSupportDirectory(base::FilePath* result);
// inside the helper. In unbundled applications, such as tests, returns nil.
NSBundle* OuterAppBundle();
+// Get the user data directory for the Chrome bundle at |bundle|. Used by app
+// shims, which run from a bundle which isn't Chrome itself, but which need
+// access to the user data directory to connect to a UNIX-domain socket
+// therein.
Mark Mentovai 2013/03/22 18:08:41 This returns a bool. Document what the bool means.
jeremy 2013/03/24 14:17:13 Also, can you please document what |bundle| is sup
jeremya 2013/04/01 23:30:22 Done.
jeremya 2013/04/01 23:30:22 Done.
+bool GetUserDataDirectoryForBundle(NSBundle* bundle, base::FilePath* result);
+
#endif // OS_MACOSX && !OS_IOS
// Checks if the |process_type| has the rights to access the profile.

Powered by Google App Engine
This is Rietveld 408576698