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

Unified Diff: chrome/browser/chromeos/policy/system_log_uploader.h

Issue 2765463002: Remote fetch device status (attributes and logs) command (Closed)
Patch Set: Addressed Drew's comments, treating StatusUploader and SystemLogUploader as one Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/policy/system_log_uploader.h
diff --git a/chrome/browser/chromeos/policy/system_log_uploader.h b/chrome/browser/chromeos/policy/system_log_uploader.h
index 8d6b032bc29df4c0cf1f0817206745d402a06f4a..bd20f14104b5076131a82f40ad4d27606f93e8f0 100644
--- a/chrome/browser/chromeos/policy/system_log_uploader.h
+++ b/chrome/browser/chromeos/policy/system_log_uploader.h
@@ -8,6 +8,9 @@
#include <stdint.h>
#include <memory>
+#include <string>
+#include <utility>
+#include <vector>
#include "base/macros.h"
#include "base/memory/ref_counted.h"
@@ -89,6 +92,8 @@ class SystemLogUploader : public UploadJob::Delegate {
feedback::AnonymizerTool* const anonymizer,
const std::string& data);
+ void ScheduleNextSystemLogUploadImmediately();
+
private:
// Updates the system log upload enabled field from settings.
void RefreshUploadSettings();
@@ -133,6 +138,10 @@ class SystemLogUploader : public UploadJob::Delegate {
base::ThreadChecker thread_checker_;
+ // Used to prevent a race condition where two log uploads are being executed
+ // in parallel.
+ bool log_upload_in_progress_ = false;
+
// Note: This should remain the last member so it'll be destroyed and
// invalidate the weak pointers before any other members are destroyed.
base::WeakPtrFactory<SystemLogUploader> weak_factory_;
« no previous file with comments | « chrome/browser/chromeos/policy/status_uploader.cc ('k') | chrome/browser/chromeos/policy/system_log_uploader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698