| 130 | } |
| 131 | |
| 132 | std::string TempFileName() { |
| 133 | #if defined(OS_MACOSX) |
| 134 | return StringPrintf(".%s.XXXXXX", butil::mac::BaseBundleID()); |
| 135 | #endif |
| 136 | |
| 137 | #if defined(GOOGLE_CHROME_BUILD) |
| 138 | return std::string(".com.google.Chrome.XXXXXX"); |
| 139 | #else |
| 140 | return std::string(".org.chromium.Chromium.XXXXXX"); |
| 141 | #endif |
| 142 | } |
| 143 | |
| 144 | // Creates and opens a temporary file in |directory|, returning the |
| 145 | // file descriptor. |path| is set to the temporary file path. |
no test coverage detected