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

Unified Diff: components/sync/engine_impl/get_updates_delegate.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 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: components/sync/engine_impl/get_updates_delegate.cc
diff --git a/sync/engine/get_updates_delegate.cc b/components/sync/engine_impl/get_updates_delegate.cc
similarity index 83%
rename from sync/engine/get_updates_delegate.cc
rename to components/sync/engine_impl/get_updates_delegate.cc
index 8ee88b729b0ad1e0b204ba950dfc2dea3c2ec3d5..88b85fa89f7dbba7119f7099288c9f424a445625 100644
--- a/sync/engine/get_updates_delegate.cc
+++ b/components/sync/engine_impl/get_updates_delegate.cc
@@ -2,22 +2,21 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "sync/engine/get_updates_delegate.h"
+#include "components/sync/engine_impl/get_updates_delegate.h"
-#include "sync/engine/directory_update_handler.h"
-#include "sync/engine/get_updates_processor.h"
-#include "sync/internal_api/public/events/configure_get_updates_request_event.h"
-#include "sync/internal_api/public/events/normal_get_updates_request_event.h"
-#include "sync/internal_api/public/events/poll_get_updates_request_event.h"
+#include "components/sync/engine/events/configure_get_updates_request_event.h"
+#include "components/sync/engine/events/normal_get_updates_request_event.h"
+#include "components/sync/engine/events/poll_get_updates_request_event.h"
+#include "components/sync/engine_impl/directory_update_handler.h"
+#include "components/sync/engine_impl/get_updates_processor.h"
namespace syncer {
namespace {
-void NonPassiveApplyUpdates(
- ModelTypeSet gu_types,
- sessions::StatusController* status_controller,
- UpdateHandlerMap* update_handler_map) {
+void NonPassiveApplyUpdates(ModelTypeSet gu_types,
+ sessions::StatusController* status_controller,
+ UpdateHandlerMap* update_handler_map) {
for (UpdateHandlerMap::iterator it = update_handler_map->begin();
it != update_handler_map->end(); ++it) {
if (gu_types.Has(it->first))
@@ -25,10 +24,9 @@ void NonPassiveApplyUpdates(
}
}
-void PassiveApplyUpdates(
- ModelTypeSet gu_types,
- sessions::StatusController* status_controller,
- UpdateHandlerMap* update_handler_map) {
+void PassiveApplyUpdates(ModelTypeSet gu_types,
+ sessions::StatusController* status_controller,
+ UpdateHandlerMap* update_handler_map) {
for (UpdateHandlerMap::iterator it = update_handler_map->begin();
it != update_handler_map->end(); ++it) {
if (gu_types.Has(it->first))
@@ -44,7 +42,7 @@ GetUpdatesDelegate::~GetUpdatesDelegate() {}
NormalGetUpdatesDelegate::NormalGetUpdatesDelegate(
const sessions::NudgeTracker& nudge_tracker)
- : nudge_tracker_(nudge_tracker) {}
+ : nudge_tracker_(nudge_tracker) {}
NormalGetUpdatesDelegate::~NormalGetUpdatesDelegate() {}
@@ -68,16 +66,15 @@ void NormalGetUpdatesDelegate::HelpPopulateGuMessage(
for (int i = 0; i < get_updates->from_progress_marker_size(); ++i) {
sync_pb::DataTypeProgressMarker* progress_marker =
get_updates->mutable_from_progress_marker(i);
- ModelType type = GetModelTypeFromSpecificsFieldNumber(
- progress_marker->data_type_id());
+ ModelType type =
+ GetModelTypeFromSpecificsFieldNumber(progress_marker->data_type_id());
DCHECK(!nudge_tracker_.IsTypeThrottled(type))
<< "Throttled types should have been removed from the request_types.";
nudge_tracker_.SetLegacyNotificationHint(type, progress_marker);
nudge_tracker_.FillProtoMessage(
- type,
- progress_marker->mutable_get_update_triggers());
+ type, progress_marker->mutable_get_update_triggers());
}
}
@@ -96,7 +93,8 @@ std::unique_ptr<ProtocolEvent> NormalGetUpdatesDelegate::GetNetworkRequestEvent(
}
ConfigureGetUpdatesDelegate::ConfigureGetUpdatesDelegate(
- sync_pb::GetUpdatesCallerInfo::GetUpdatesSource source) : source_(source) {}
+ sync_pb::GetUpdatesCallerInfo::GetUpdatesSource source)
+ : source_(source) {}
ConfigureGetUpdatesDelegate::~ConfigureGetUpdatesDelegate() {}
« no previous file with comments | « components/sync/engine_impl/get_updates_delegate.h ('k') | components/sync/engine_impl/get_updates_processor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698