| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef REMOTING_BASE_BREAKPAD_H_ | 5 #ifndef REMOTING_BASE_BREAKPAD_H_ |
| 6 #define REMOTING_BASE_BREAKPAD_H_ | 6 #define REMOTING_BASE_BREAKPAD_H_ |
| 7 | 7 |
| 8 namespace remoting { | 8 namespace remoting { |
| 9 | 9 |
| 10 // Initializes collection and upload of crash reports. The caller has to ensure | 10 // Initializes collection and upload of crash reports. The caller has to ensure |
| 11 // that the user has agreed to crash dump reporting. | 11 // that the user has agreed to crash dump reporting. |
| 12 // | 12 // |
| 13 // Crash reporting has to be initialized as early as possible (e.g. the first | 13 // Crash reporting has to be initialized as early as possible (e.g. the first |
| 14 // thing in main()) to catch crashes occured during the process startup. | 14 // thing in main()) to catch crashes occuring during process startup. |
| 15 // The crashes occurred while invoking the static objects' constructors will not | 15 // Crashes which occur during the global static construction phase will not |
| 16 // be caught and reported. This should not be a problem as the static non POD | 16 // be caught and reported. This should not be a problem as static non-POD |
| 17 // objects are not allowed by the style guide and exceptions to this rule are | 17 // objects are not allowed by the style guide and exceptions to this rule are |
| 18 // rare. | 18 // rare. |
| 19 void InitializeCrashReporting(); | 19 void InitializeCrashReporting(); |
| 20 | 20 |
| 21 } // remoting | 21 } // remoting |
| 22 | 22 |
| 23 #endif // REMOTING_BASE_BREAKPAD_H_ | 23 #endif // REMOTING_BASE_BREAKPAD_H_ |
| OLD | NEW |