Skip to content

Commit

Permalink
Cleanup: IWYU for base/time.h in sync/.
Browse files Browse the repository at this point in the history
Review URL: https://chromiumcodereview.appspot.com/11028086

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161059 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
thestig@chromium.org committed Oct 10, 2012
1 parent e67291f commit 7573f49
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions sync/engine/throttled_data_type_tracker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
4 changes: 4 additions & 0 deletions sync/engine/throttled_data_type_tracker.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion sync/engine/throttled_data_type_tracker_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -64,4 +65,3 @@ TEST(ThrottledDataTypeTrackerTest, UnthrottleSomeTypesTest) {
}

} // namespace syncer

2 changes: 1 addition & 1 deletion sync/internal_api/base_node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
1 change: 0 additions & 1 deletion sync/internal_api/public/base/model_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
3 changes: 2 additions & 1 deletion sync/internal_api/public/base_node.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions sync/internal_api/public/engine/sync_status.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion sync/internal_api/public/sync_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion sync/sessions/sync_session_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 7573f49

Please sign in to comment.