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

Unified Diff: content/common/sandbox_mac.h

Issue 2919963003: Update sandbox profiles and remove regular expressions. (Closed)
Patch Set: Remove string quoting Created 3 years, 7 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 | « content/common/common.sb ('k') | content/common/sandbox_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/sandbox_mac.h
diff --git a/content/common/sandbox_mac.h b/content/common/sandbox_mac.h
index a15440e9a347d6f11bf5c5745d73963f036109d4..2c3e27c9f8ffad64919586f1f7df263393420424 100644
--- a/content/common/sandbox_mac.h
+++ b/content/common/sandbox_mac.h
@@ -43,26 +43,6 @@ class CONTENT_EXPORT Sandbox {
// Returns true if the sandbox has been enabled for the current process.
static bool SandboxIsCurrentlyActive();
- // Escape |src_utf8| for use in a plain string variable in a sandbox
- // configuraton file. On return |dst| is set to the quoted output.
- // Returns: true on success, false otherwise.
- static bool QuotePlainString(const std::string& src_utf8, std::string* dst);
-
- // Escape |str_utf8| for use in a regex literal in a sandbox
- // configuraton file. On return |dst| is set to the utf-8 encoded quoted
- // output.
- //
- // The implementation of this function is based on empirical testing of the
- // OS X sandbox on 10.5.8 & 10.6.2 which is undocumented and subject to
- // change.
- //
- // Note: If str_utf8 contains any characters < 32 || >125 then the function
- // fails and false is returned.
- //
- // Returns: true on success, false otherwise.
- static bool QuoteStringForRegex(const std::string& str_utf8,
- std::string* dst);
-
private:
// Convert provided path into a "canonical" path matching what the Sandbox
// expects i.e. one without symlinks.
« no previous file with comments | « content/common/common.sb ('k') | content/common/sandbox_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698