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

Unified Diff: chrome/common/mac/app_mode_common.h

Issue 66043003: Put app shim IPC socket in a temporary directory. (Mac) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 7 years 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/mac/app_mode_common.h
diff --git a/chrome/common/mac/app_mode_common.h b/chrome/common/mac/app_mode_common.h
index a88ded6598f762040990af264ee83f18409c6509..874dd92ca29883758b60f8f5c8e8c058554b8016 100644
--- a/chrome/common/mac/app_mode_common.h
+++ b/chrome/common/mac/app_mode_common.h
@@ -127,6 +127,11 @@ struct ChromeAppModeInfo {
base::FilePath profile_dir;
};
+// Due to kernel API restraints on the length of the path to a socket, we
+// cannot use a socket under the user data dir. GetShortSocketPath returns a
+// path under /tmp constructed from a hash of the user data dir.
+base::FilePath GetShortSocketPath(const base::FilePath& user_data_dir);
+
} // namespace app_mode
#endif // CHROME_COMMON_MAC_APP_MODE_COMMON_H_

Powered by Google App Engine
This is Rietveld 408576698