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

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

Issue 1216643002: Added unittests for SystemLogUploader. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed comments. Created 5 years, 5 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.cc
diff --git a/chrome/browser/chromeos/policy/system_log_uploader.cc b/chrome/browser/chromeos/policy/system_log_uploader.cc
index 4576d561ffc8531ffb00f883ded180a35e69a8d5..023ce1ce5b73d8503f6e3591c6915c23035d0f24 100644
--- a/chrome/browser/chromeos/policy/system_log_uploader.cc
+++ b/chrome/browser/chromeos/policy/system_log_uploader.cc
@@ -17,13 +17,6 @@
#include "content/public/browser/browser_thread.h"
namespace {
-// Determines the time between log uploads.
-const int64 kDefaultUploadDelayMs = 12 * 60 * 60 * 1000; // 12 hours
-
-// Determines the time, measured from the time of last failed upload,
-// after which the log upload is retried.
-const int64 kErrorUploadDelayMs = 120 * 1000; // 120 seconds
-
// The maximum number of consequent retries.
const int kMaxNumRetries = 1;
@@ -143,6 +136,14 @@ scoped_ptr<policy::UploadJob> SystemLogDelegate::CreateUploadJob(
namespace policy {
+// Determines the time between log uploads.
+const int64 SystemLogUploader::kDefaultUploadDelayMs =
+ 12 * 60 * 60 * 1000; // 12 hours
+
+// Determines the time, measured from the time of last failed upload,
+// after which the log upload is retried.
+const int64 SystemLogUploader::kErrorUploadDelayMs = 120 * 1000; // 120 seconds
+
SystemLogUploader::SystemLogUploader(
const scoped_refptr<base::SequencedTaskRunner>& task_runner)
: retry_count_(0),

Powered by Google App Engine
This is Rietveld 408576698