summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-10 05:53:30 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-10 05:53:30 +0000
commit7573f4933330825b60783d765a11c46bd6dbf138 (patch)
tree2e69c5a9df15044121014c4489cac8c3b92c43a0
parente67291f1b7e1816dc04ed63f15217587f535578b (diff)
downloadchromium_src-7573f4933330825b60783d765a11c46bd6dbf138.zip
chromium_src-7573f4933330825b60783d765a11c46bd6dbf138.tar.gz
chromium_src-7573f4933330825b60783d765a11c46bd6dbf138.tar.bz2
Cleanup: IWYU for base/time.h in sync/.
Review URL: https://chromiumcodereview.appspot.com/11028086 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161059 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--sync/engine/throttled_data_type_tracker.cc1
-rw-r--r--sync/engine/throttled_data_type_tracker.h4
-rw-r--r--sync/engine/throttled_data_type_tracker_unittest.cc2
-rw-r--r--sync/internal_api/base_node.cc2
-rw-r--r--sync/internal_api/public/base/model_type.h1
-rw-r--r--sync/internal_api/public/base_node.h3
-rw-r--r--sync/internal_api/public/engine/sync_status.h1
-rw-r--r--sync/internal_api/public/sync_manager.h1
-rw-r--r--sync/sessions/sync_session_context.h1
9 files changed, 10 insertions, 6 deletions
diff --git a/sync/engine/throttled_data_type_tracker.cc b/sync/engine/throttled_data_type_tracker.cc
index 9cb2461..fb7b08a 100644
--- a/sync/engine/throttled_data_type_tracker.cc
+++ b/sync/engine/throttled_data_type_tracker.cc
@@ -4,6 +4,7 @@
#include "sync/engine/throttled_data_type_tracker.h"
+#include "base/time.h"
#include "sync/engine/all_status.h"
#include "sync/internal_api/public/base/model_type.h"
diff --git a/sync/engine/throttled_data_type_tracker.h b/sync/engine/throttled_data_type_tracker.h
index e2a40bf..53c5dbe 100644
--- a/sync/engine/throttled_data_type_tracker.h
+++ b/sync/engine/throttled_data_type_tracker.h
@@ -10,6 +10,10 @@
#include "base/gtest_prod_util.h"
#include "sync/internal_api/public/base/model_type.h"
+namespace base {
+class TimeTicks;
+}
+
namespace syncer {
class AllStatus;
diff --git a/sync/engine/throttled_data_type_tracker_unittest.cc b/sync/engine/throttled_data_type_tracker_unittest.cc
index a2d894f..cde427d 100644
--- a/sync/engine/throttled_data_type_tracker_unittest.cc
+++ b/sync/engine/throttled_data_type_tracker_unittest.cc
@@ -4,6 +4,7 @@
#include "sync/engine/throttled_data_type_tracker.h"
+#include "base/time.h"
#include "sync/internal_api/public/base/model_type.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -64,4 +65,3 @@ TEST(ThrottledDataTypeTrackerTest, UnthrottleSomeTypesTest) {
}
} // namespace syncer
-
diff --git a/sync/internal_api/base_node.cc b/sync/internal_api/base_node.cc
index 9595d29..b24583d 100644
--- a/sync/internal_api/base_node.cc
+++ b/sync/internal_api/base_node.cc
@@ -181,7 +181,7 @@ int64 BaseNode::GetId() const {
return GetEntry()->Get(syncable::META_HANDLE);
}
-const base::Time& BaseNode::GetModificationTime() const {
+base::Time BaseNode::GetModificationTime() const {
return GetEntry()->Get(syncable::MTIME);
}
diff --git a/sync/internal_api/public/base/model_type.h b/sync/internal_api/public/base/model_type.h
index 8037e54..e710b4a 100644
--- a/sync/internal_api/public/base/model_type.h
+++ b/sync/internal_api/public/base/model_type.h
@@ -13,7 +13,6 @@
#include <string>
#include "base/logging.h"
-#include "base/time.h"
#include "sync/base/sync_export.h"
#include "sync/internal_api/public/base/enum_set.h"
diff --git a/sync/internal_api/public/base_node.h b/sync/internal_api/public/base_node.h
index d4ba99d..39d66d4 100644
--- a/sync/internal_api/public/base_node.h
+++ b/sync/internal_api/public/base_node.h
@@ -11,6 +11,7 @@
#include "base/basictypes.h"
#include "base/gtest_prod_util.h"
#include "base/memory/scoped_ptr.h"
+#include "base/time.h"
#include "googleurl/src/gurl.h"
#include "sync/internal_api/public/base/model_type.h"
#include "sync/protocol/sync.pb.h"
@@ -88,7 +89,7 @@ class BaseNode {
virtual int64 GetId() const;
// Returns the modification time of the object.
- const base::Time& GetModificationTime() const;
+ base::Time GetModificationTime() const;
// Nodes are hierarchically arranged into a single-rooted tree.
// InitByRootLookup on ReadNode allows access to the root. GetParentId is
diff --git a/sync/internal_api/public/engine/sync_status.h b/sync/internal_api/public/engine/sync_status.h
index 9a2e8b1..2f0d0c0 100644
--- a/sync/internal_api/public/engine/sync_status.h
+++ b/sync/internal_api/public/engine/sync_status.h
@@ -7,6 +7,7 @@
#include <string>
+#include "base/time.h"
#include "sync/base/sync_export.h"
#include "sync/internal_api/public/base/model_type.h"
#include "sync/internal_api/public/sync_encryption_handler.h"
diff --git a/sync/internal_api/public/sync_manager.h b/sync/internal_api/public/sync_manager.h
index a0bc548..654eb7e 100644
--- a/sync/internal_api/public/sync_manager.h
+++ b/sync/internal_api/public/sync_manager.h
@@ -14,7 +14,6 @@
#include "base/memory/ref_counted.h"
#include "base/task_runner.h"
#include "base/threading/thread_checker.h"
-#include "base/time.h"
#include "sync/internal_api/public/base/model_type.h"
#include "sync/internal_api/public/change_record.h"
#include "sync/internal_api/public/configure_reason.h"
diff --git a/sync/sessions/sync_session_context.h b/sync/sessions/sync_session_context.h
index 3f01150..16d3a61 100644
--- a/sync/sessions/sync_session_context.h
+++ b/sync/sessions/sync_session_context.h
@@ -22,7 +22,6 @@
#include <string>
#include <vector>
-#include "base/time.h"
#include "sync/engine/sync_engine_event.h"
#include "sync/engine/syncer_types.h"
#include "sync/engine/traffic_recorder.h"