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

Side by Side Diff: util/mac/mac_util.h

Issue 656703002: Convert NULL to nullptr (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Fix 80-column violations Created 6 years, 2 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 unified diff | Download patch
« no previous file with comments | « util/mac/launchd.mm ('k') | util/mac/mac_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Crashpad Authors. All rights reserved. 1 // Copyright 2014 The Crashpad Authors. All rights reserved.
2 // 2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License. 4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at 5 // You may obtain a copy of the License at
6 // 6 //
7 // http://www.apache.org/licenses/LICENSE-2.0 7 // http://www.apache.org/licenses/LICENSE-2.0
8 // 8 //
9 // Unless required by applicable law or agreed to in writing, software 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, 10 // distributed under the License is distributed on an "AS IS" BASIS,
(...skipping 14 matching lines...) Expand all
25 //! 10.9.2. 25 //! 10.9.2.
26 //! 26 //!
27 //! \note This is similar to the base::mac::IsOS*() family of functions, but 27 //! \note This is similar to the base::mac::IsOS*() family of functions, but
28 //! is provided for situations where the caller needs to obtain version 28 //! is provided for situations where the caller needs to obtain version
29 //! information beyond what is provided by Chromium’s base, or for when the 29 //! information beyond what is provided by Chromium’s base, or for when the
30 //! caller needs the actual minor version value. 30 //! caller needs the actual minor version value.
31 int MacOSXMinorVersion(); 31 int MacOSXMinorVersion();
32 32
33 //! \brief Returns the version of the running operating system. 33 //! \brief Returns the version of the running operating system.
34 //! 34 //!
35 //! All parameters are required. No parameter may be `NULL`. 35 //! All parameters are required. No parameter may be `nullptr`.
36 //! 36 //!
37 //! \param[out] major The major version of the operating system, such as `10` 37 //! \param[out] major The major version of the operating system, such as `10`
38 //! for Mac OS X 10.9.2. 38 //! for Mac OS X 10.9.2.
39 //! \param[out] minor The major version of the operating system, such as `9` for 39 //! \param[out] minor The major version of the operating system, such as `9` for
40 //! Mac OS X 10.9.2. 40 //! Mac OS X 10.9.2.
41 //! \param[out] bugfix The bugfix version of the operating system, such as `2` 41 //! \param[out] bugfix The bugfix version of the operating system, such as `2`
42 //! for Mac OS X 10.9.2. 42 //! for Mac OS X 10.9.2.
43 //! \param[out] build The operating system’s build string, such as "13C64" for 43 //! \param[out] build The operating system’s build string, such as "13C64" for
44 //! Mac OS X 10.9.2. 44 //! Mac OS X 10.9.2.
45 //! \param[out] server `true` for a Mac OS X Server installation, `false` 45 //! \param[out] server `true` for a Mac OS X Server installation, `false`
(...skipping 18 matching lines...) Expand all
64 //! report “MacBookPro10,1”. 64 //! report “MacBookPro10,1”.
65 //! \param[out] board_id The system’s board ID. A mid-2012 15" MacBook Pro would 65 //! \param[out] board_id The system’s board ID. A mid-2012 15" MacBook Pro would
66 //! report “Mac-C3EC7CD22292981F”. 66 //! report “Mac-C3EC7CD22292981F”.
67 //! 67 //!
68 //! If a value cannot be determined, its string is cleared. 68 //! If a value cannot be determined, its string is cleared.
69 void MacModelAndBoard(std::string* model, std::string* board_id); 69 void MacModelAndBoard(std::string* model, std::string* board_id);
70 70
71 } // namespace crashpad 71 } // namespace crashpad
72 72
73 #endif // CRASHPAD_UTIL_MAC_MAC_UTIL_H_ 73 #endif // CRASHPAD_UTIL_MAC_MAC_UTIL_H_
OLDNEW
« no previous file with comments | « util/mac/launchd.mm ('k') | util/mac/mac_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698