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

Unified Diff: unclean_shutdown_collector.h

Issue 3644007: Crash reporter: collect suspend and resume info from power manager (Closed) Base URL: http://git.chromium.org/git/crash-reporter.git
Patch Set: ABC order, ASSERT_EQ order Created 10 years, 1 month 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 | « no previous file | unclean_shutdown_collector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: unclean_shutdown_collector.h
diff --git a/unclean_shutdown_collector.h b/unclean_shutdown_collector.h
index e7d8cef95948793b77e70bed873812a36a558ba0..7e10e7f287bd855616ef0e890fbc0b9226384143 100644
--- a/unclean_shutdown_collector.h
+++ b/unclean_shutdown_collector.h
@@ -30,10 +30,19 @@ class UncleanShutdownCollector : public CrashCollector {
private:
friend class UncleanShutdownCollectorTest;
FRIEND_TEST(UncleanShutdownCollectorTest, EnableCannotWrite);
+ FRIEND_TEST(UncleanShutdownCollectorTest, CollectDeadBatteryRunningLow);
+ FRIEND_TEST(UncleanShutdownCollectorTest, CollectDeadBatterySuspended);
- bool DeleteUncleanShutdownFile();
+ bool DeleteUncleanShutdownFiles();
+
+ // Check for unclean shutdown due to battery running out by analyzing powerd
+ // trace files.
+ bool DeadBatteryCausedUncleanShutdown();
const char *unclean_shutdown_file_;
+ FilePath powerd_trace_path_;
+ FilePath powerd_suspended_file_;
+ FilePath powerd_low_battery_file_;
};
#endif // _CRASH_REPORTER_UNCLEAN_SHUTDOWN_COLLECTOR_H_
« no previous file with comments | « no previous file | unclean_shutdown_collector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698