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

Unified Diff: chrome/browser/chromeos/cros/update_library.h

Issue 7575001: cros: Remove unneeded includes from update_library.h plus some random cleanups. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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/cros/update_library.h
diff --git a/chrome/browser/chromeos/cros/update_library.h b/chrome/browser/chromeos/cros/update_library.h
index f0fb65da303812d99cdd8932bbe2d6f2a3001950..e17934b400186b0ff8e1b55863c57b89244caa71 100644
--- a/chrome/browser/chromeos/cros/update_library.h
+++ b/chrome/browser/chromeos/cros/update_library.h
@@ -8,9 +8,6 @@
#include <string>
-#include "base/memory/singleton.h"
-#include "base/observer_list.h"
-#include "base/time.h"
#include "third_party/cros/chromeos_update_engine.h"
namespace chromeos {
@@ -33,19 +30,19 @@ class UpdateLibrary {
new_size(0) {
}
- explicit Status(const UpdateProgress& x) :
- status(x.status_),
- download_progress(x.download_progress_),
- last_checked_time(x.last_checked_time_),
- new_version(x.new_version_),
- new_size(x.new_size_) {
+ explicit Status(const UpdateProgress& o)
+ : status(o.status_),
+ download_progress(o.download_progress_),
+ last_checked_time(o.last_checked_time_),
+ new_version(o.new_version_),
+ new_size(o.new_size_) {
}
UpdateStatusOperation status;
- double download_progress; // 0.0 - 1.0
+ double download_progress; // 0.0 - 1.0
int64_t last_checked_time; // As reported by std::time().
std::string new_version;
- int64_t new_size; // Valid during DOWNLOADING, in bytes.
+ int64_t new_size; // Valid during DOWNLOADING, in bytes.
};
class Observer {
« no previous file with comments | « no previous file | chrome/browser/chromeos/cros/update_library.cc » ('j') | chrome/browser/chromeos/cros/update_library.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698