aboutsummaryrefslogtreecommitdiff
path: root/src/client/ios/BreakpadController.h
diff options
context:
space:
mode:
authorqsr@chromium.org <qsr@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e>2012-11-28 17:04:52 +0000
committerqsr@chromium.org <qsr@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e>2012-11-28 17:04:52 +0000
commitac9324da7ad7c8dd9d42af608e3b2faf9723d56c (patch)
tree6491e185088608af3b6cef8510626a419e3d0fbf /src/client/ios/BreakpadController.h
parentFix unused variable warning in optimized build (fix proveded by Matthew Riley) (diff)
downloadbreakpad-ac9324da7ad7c8dd9d42af608e3b2faf9723d56c.tar.xz
Add assertion on initialization sequence.
The order at which to call the controller methods is: 1) Any method that change the configuration_ field 2) start 3) Any other method This change adds assertion that it is done correctly. Review URL: https://breakpad.appspot.com/499003 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1085 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/client/ios/BreakpadController.h')
-rw-r--r--src/client/ios/BreakpadController.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/ios/BreakpadController.h b/src/client/ios/BreakpadController.h
index 6eb826b3..f766100e 100644
--- a/src/client/ios/BreakpadController.h
+++ b/src/client/ios/BreakpadController.h
@@ -55,6 +55,10 @@
// Whether or not crash reports should be uploaded.
BOOL enableUploads_;
+ // Whether the controller has been started on the main thread. This is only
+ // used to assert the initialization order is correct.
+ BOOL started_;
+
// The interval to wait between two uploads. Value is 0 if no upload must be
// done.
int uploadIntervalInSeconds_;