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

Issue 10795018: [Sync] Remove unneeded 'using syncer::' lines and 'syncer::' scopings (Closed)

Created:
8 years, 5 months ago by akalin
Modified:
8 years, 5 months ago
Reviewers:
Nicolas Zea
CC:
chromium-reviews, pam+watch_chromium.org
Visibility:
Public.

Description

[Sync] Remove unneeded 'using syncer::' lines and 'syncer::' scopings Since (almost) everything in sync/ is now in the 'syncer' namespace, all of these are redundant. Clean up indentation. Put sync_{client,listen_notifications} into syncer namespace. BUG=128060 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=147675

Patch Set 1 #

Patch Set 2 : fix indent #

Total comments: 20

Patch Set 3 : Address comments, fix compile error #

Patch Set 4 : Sync to head #

Patch Set 5 : sync to head #

Patch Set 6 : fiix indent #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1564 lines, -1714 lines) Patch
M sync/api/fake_syncable_service.h View 2 chunks +4 lines, -4 lines 0 comments Download
M sync/api/fake_syncable_service.cc View 3 chunks +4 lines, -5 lines 0 comments Download
M sync/api/sync_change.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M sync/api/sync_change_unittest.cc View 6 chunks +7 lines, -7 lines 0 comments Download
M sync/api/sync_data.h View 1 5 chunks +4 lines, -7 lines 0 comments Download
M sync/api/sync_data.cc View 1 5 chunks +10 lines, -11 lines 0 comments Download
M sync/api/sync_error.h View 5 chunks +5 lines, -5 lines 0 comments Download
M sync/api/sync_error.cc View 5 chunks +7 lines, -7 lines 0 comments Download
M sync/api/sync_error_unittest.cc View 7 chunks +8 lines, -9 lines 0 comments Download
M sync/api/syncable_service.h View 1 chunk +3 lines, -3 lines 0 comments Download
M sync/engine/all_status.h View 3 chunks +6 lines, -6 lines 0 comments Download
M sync/engine/all_status.cc View 1 4 chunks +7 lines, -8 lines 0 comments Download
M sync/engine/apply_updates_command.cc View 4 chunks +6 lines, -6 lines 0 comments Download
M sync/engine/apply_updates_command_unittest.cc View 1 26 chunks +47 lines, -48 lines 0 comments Download
M sync/engine/build_commit_command.cc View 1 chunk +0 lines, -1 line 0 comments Download
M sync/engine/cleanup_disabled_types_command.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M sync/engine/cleanup_disabled_types_command_unittest.cc View 4 chunks +9 lines, -9 lines 0 comments Download
M sync/engine/conflict_resolver.cc View 1 chunk +1 line, -1 line 0 comments Download
M sync/engine/download_updates_command.cc View 1 2 chunks +2 lines, -3 lines 0 comments Download
M sync/engine/download_updates_command_unittest.cc View 2 chunks +6 lines, -6 lines 0 comments Download
M sync/engine/get_commit_ids_command.h View 1 chunk +2 lines, -2 lines 0 comments Download
M sync/engine/get_commit_ids_command.cc View 4 chunks +8 lines, -8 lines 0 comments Download
M sync/engine/model_changing_syncer_command.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M sync/engine/model_changing_syncer_command_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M sync/engine/process_commit_response_command.cc View 1 chunk +1 line, -1 line 0 comments Download
M sync/engine/process_commit_response_command_unittest.cc View 11 chunks +27 lines, -27 lines 0 comments Download
M sync/engine/process_updates_command.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M sync/engine/process_updates_command_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M sync/engine/resolve_conflicts_command_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M sync/engine/store_timestamps_command.cc View 2 chunks +6 lines, -6 lines 0 comments Download
M sync/engine/sync_scheduler.h View 1 2 3 3 chunks +5 lines, -5 lines 0 comments Download
M sync/engine/sync_scheduler_impl.h View 1 2 3 3 chunks +5 lines, -5 lines 0 comments Download
M sync/engine/sync_scheduler_impl.cc View 1 2 3 9 chunks +20 lines, -21 lines 0 comments Download
M sync/engine/sync_scheduler_unittest.cc View 1 2 3 18 chunks +31 lines, -35 lines 0 comments Download
M sync/engine/sync_scheduler_whitebox_unittest.cc View 1 2 3 3 chunks +6 lines, -7 lines 0 comments Download
M sync/engine/syncer_proto_util.h View 3 chunks +3 lines, -3 lines 0 comments Download
M sync/engine/syncer_proto_util.cc View 8 chunks +39 lines, -39 lines 0 comments Download
M sync/engine/syncer_proto_util_unittest.cc View 3 chunks +6 lines, -6 lines 0 comments Download
M sync/engine/syncer_unittest.cc View 1 2 3 30 chunks +47 lines, -48 lines 0 comments Download
M sync/engine/syncer_util.h View 1 chunk +1 line, -1 line 0 comments Download
M sync/engine/syncer_util.cc View 4 chunks +5 lines, -5 lines 0 comments Download
M sync/engine/throttled_data_type_tracker.h View 1 2 chunks +3 lines, -4 lines 0 comments Download
M sync/engine/throttled_data_type_tracker.cc View 1 2 chunks +5 lines, -6 lines 0 comments Download
M sync/engine/throttled_data_type_tracker_unittest.cc View 2 chunks +6 lines, -6 lines 0 comments Download
M sync/engine/update_applicator.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M sync/engine/verify_updates_command.h View 1 chunk +1 line, -1 line 0 comments Download
M sync/engine/verify_updates_command.cc View 5 chunks +5 lines, -6 lines 0 comments Download
M sync/engine/verify_updates_command_unittest.cc View 3 chunks +13 lines, -13 lines 0 comments Download
M sync/internal_api/base_node.cc View 1 2 10 chunks +26 lines, -29 lines 0 comments Download
M sync/internal_api/base_transaction.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M sync/internal_api/change_record.cc View 1 2 chunks +2 lines, -3 lines 0 comments Download
M sync/internal_api/change_reorder_buffer.cc View 1 chunk +1 line, -1 line 0 comments Download
M sync/internal_api/debug_info_event_listener.h View 1 2 chunks +10 lines, -11 lines 0 comments Download
M sync/internal_api/debug_info_event_listener.cc View 1 7 chunks +14 lines, -15 lines 0 comments Download
M sync/internal_api/debug_info_event_listener_unittest.cc View 1 2 chunks +4 lines, -5 lines 0 comments Download
M sync/internal_api/http_bridge.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M sync/internal_api/internal_components_factory_impl.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M sync/internal_api/js_mutation_event_observer.h View 2 chunks +6 lines, -6 lines 0 comments Download
M sync/internal_api/js_mutation_event_observer.cc View 1 3 chunks +8 lines, -9 lines 0 comments Download
M sync/internal_api/js_mutation_event_observer_unittest.cc View 1 4 chunks +16 lines, -22 lines 0 comments Download
M sync/internal_api/js_sync_manager_observer.h View 1 1 chunk +6 lines, -7 lines 0 comments Download
M sync/internal_api/js_sync_manager_observer.cc View 1 4 chunks +6 lines, -9 lines 0 comments Download
M sync/internal_api/js_sync_manager_observer_unittest.cc View 1 6 chunks +17 lines, -20 lines 0 comments Download
M sync/internal_api/public/base/model_type.h View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M sync/internal_api/public/base/model_type_payload_map.cc View 1 2 chunks +3 lines, -4 lines 0 comments Download
M sync/internal_api/public/base/model_type_payload_map_unittest.cc View 1 chunk +15 lines, -15 lines 0 comments Download
M sync/internal_api/public/base_node.h View 1 2 3 chunks +4 lines, -3 lines 0 comments Download
M sync/internal_api/public/base_transaction.h View 2 chunks +2 lines, -2 lines 0 comments Download
M sync/internal_api/public/change_record.h View 1 chunk +1 line, -1 line 0 comments Download
M sync/internal_api/public/change_record_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M sync/internal_api/public/engine/model_safe_worker.h View 1 2 2 chunks +5 lines, -6 lines 0 comments Download
M sync/internal_api/public/engine/model_safe_worker.cc View 4 chunks +7 lines, -8 lines 0 comments Download
M sync/internal_api/public/engine/model_safe_worker_unittest.cc View 1 3 chunks +14 lines, -17 lines 0 comments Download
M sync/internal_api/public/engine/sync_status.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M sync/internal_api/public/http_bridge.h View 3 chunks +6 lines, -6 lines 0 comments Download
M sync/internal_api/public/internal_components_factory.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M sync/internal_api/public/internal_components_factory_impl.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M sync/internal_api/public/read_node.h View 1 chunk +1 line, -1 line 0 comments Download
M sync/internal_api/public/sessions/model_neutral_state.h View 2 chunks +2 lines, -2 lines 0 comments Download
M sync/internal_api/public/sessions/sync_session_snapshot.h View 1 2 3 3 chunks +6 lines, -6 lines 0 comments Download
M sync/internal_api/public/sessions/sync_session_snapshot.cc View 1 2 3 3 chunks +6 lines, -7 lines 0 comments Download
M sync/internal_api/public/sessions/sync_source_info.h View 1 chunk +3 lines, -3 lines 0 comments Download
M sync/internal_api/public/sessions/sync_source_info.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M sync/internal_api/public/sync_manager.h View 1 2 3 4 12 chunks +25 lines, -27 lines 0 comments Download
M sync/internal_api/public/sync_manager_factory.h View 1 chunk +1 line, -1 line 0 comments Download
M sync/internal_api/public/test/fake_sync_manager.h View 1 2 3 4 2 chunks +26 lines, -27 lines 0 comments Download
M sync/internal_api/public/test/test_entry_factory.h View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M sync/internal_api/public/test/test_internal_components_factory.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M sync/internal_api/public/test/test_user_share.h View 3 chunks +4 lines, -4 lines 0 comments Download
M sync/internal_api/public/util/immutable.h View 1 chunk +1 line, -2 lines 0 comments Download
M sync/internal_api/public/util/weak_handle.h View 1 chunk +1 line, -1 line 0 comments Download
M sync/internal_api/public/write_node.h View 4 chunks +4 lines, -4 lines 0 comments Download
M sync/internal_api/read_node.cc View 1 2 chunks +5 lines, -7 lines 0 comments Download
M sync/internal_api/sync_manager_impl.h View 1 2 3 4 11 chunks +31 lines, -31 lines 0 comments Download
M sync/internal_api/sync_manager_impl.cc View 1 2 3 4 5 50 chunks +116 lines, -134 lines 0 comments Download
M sync/internal_api/syncapi_internal.h View 1 chunk +2 lines, -2 lines 0 comments Download
M sync/internal_api/syncapi_internal.cc View 2 chunks +1 line, -3 lines 0 comments Download
M sync/internal_api/syncapi_server_connection_manager.h View 1 3 chunks +4 lines, -6 lines 0 comments Download
M sync/internal_api/syncapi_server_connection_manager.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M sync/internal_api/syncapi_server_connection_manager_unittest.cc View 1 chunk +2 lines, -5 lines 0 comments Download
M sync/internal_api/syncapi_unittest.cc View 1 2 3 4 81 chunks +216 lines, -219 lines 0 comments Download
M sync/internal_api/test/fake_sync_manager.cc View 1 2 3 4 5 chunks +32 lines, -34 lines 0 comments Download
M sync/internal_api/test/test_entry_factory.cc View 5 chunks +5 lines, -5 lines 0 comments Download
M sync/internal_api/test/test_internal_components_factory.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M sync/internal_api/test/test_user_share.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M sync/internal_api/write_node.cc View 1 10 chunks +23 lines, -24 lines 0 comments Download
M sync/notifier/chrome_invalidation_client.h View 1 2 chunks +2 lines, -4 lines 0 comments Download
M sync/notifier/chrome_invalidation_client.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M sync/notifier/chrome_invalidation_client_unittest.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M sync/notifier/invalidation_notifier.h View 1 3 chunks +4 lines, -6 lines 0 comments Download
M sync/notifier/invalidation_notifier.cc View 1 5 chunks +7 lines, -11 lines 0 comments Download
M sync/notifier/invalidation_notifier_unittest.cc View 3 chunks +6 lines, -6 lines 0 comments Download
M sync/notifier/invalidation_util.h View 1 chunk +2 lines, -2 lines 0 comments Download
M sync/notifier/invalidation_util.cc View 1 2 chunks +4 lines, -7 lines 0 comments Download
M sync/notifier/mock_sync_notifier_observer.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M sync/notifier/non_blocking_invalidation_notifier.h View 1 2 chunks +4 lines, -6 lines 0 comments Download
M sync/notifier/non_blocking_invalidation_notifier.cc View 1 11 chunks +14 lines, -19 lines 0 comments Download
M sync/notifier/non_blocking_invalidation_notifier_unittest.cc View 1 2 chunks +5 lines, -6 lines 0 comments Download
M sync/notifier/p2p_notifier.h View 1 4 chunks +6 lines, -8 lines 0 comments Download
M sync/notifier/p2p_notifier.cc View 1 7 chunks +9 lines, -11 lines 0 comments Download
M sync/notifier/p2p_notifier_unittest.cc View 9 chunks +14 lines, -14 lines 0 comments Download
M sync/notifier/sync_notifier.h View 1 chunk +2 lines, -2 lines 0 comments Download
M sync/notifier/sync_notifier_factory.h View 1 chunk +1 line, -1 line 0 comments Download
M sync/notifier/sync_notifier_factory.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M sync/notifier/sync_notifier_factory_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M sync/notifier/sync_notifier_observer.h View 1 chunk +1 line, -1 line 0 comments Download
M sync/protocol/proto_value_conversions_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M sync/protocol/sync_protocol_error.h View 1 chunk +1 line, -1 line 0 comments Download
M sync/sessions/ordered_commit_set.h View 6 chunks +8 lines, -8 lines 0 comments Download
M sync/sessions/ordered_commit_set.cc View 1 5 chunks +5 lines, -7 lines 0 comments Download
M sync/sessions/ordered_commit_set_unittest.cc View 4 chunks +22 lines, -22 lines 0 comments Download
M sync/sessions/session_state_unittest.cc View 1 2 chunks +10 lines, -11 lines 0 comments Download
M sync/sessions/status_controller.h View 4 chunks +5 lines, -5 lines 0 comments Download
M sync/sessions/status_controller.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M sync/sessions/status_controller_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M sync/sessions/sync_session.cc View 1 2 chunks +8 lines, -9 lines 0 comments Download
M sync/sessions/sync_session_context.h View 3 chunks +3 lines, -3 lines 0 comments Download
M sync/sessions/sync_session_context.cc View 1 chunk +1 line, -1 line 0 comments Download
M sync/sessions/sync_session_unittest.cc View 1 11 chunks +39 lines, -40 lines 0 comments Download
M sync/syncable/directory.h View 1 8 chunks +12 lines, -16 lines 0 comments Download
M sync/syncable/directory.cc View 1 7 chunks +7 lines, -11 lines 0 comments Download
M sync/syncable/directory_backing_store.h View 1 chunk +1 line, -1 line 0 comments Download
M sync/syncable/directory_backing_store.cc View 4 chunks +6 lines, -6 lines 0 comments Download
M sync/syncable/directory_backing_store_unittest.cc View 1 3 chunks +10 lines, -11 lines 0 comments Download
M sync/syncable/entry.cc View 1 3 chunks +3 lines, -4 lines 0 comments Download
M sync/syncable/entry_kernel.h View 1 3 chunks +3 lines, -5 lines 0 comments Download
M sync/syncable/entry_kernel.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M sync/syncable/model_type_unittest.cc View 1 3 chunks +3 lines, -5 lines 0 comments Download
M sync/syncable/mutable_entry.cc View 1 2 chunks +2 lines, -4 lines 0 comments Download
M sync/syncable/nigori_util.h View 3 chunks +3 lines, -3 lines 0 comments Download
M sync/syncable/nigori_util.cc View 1 9 chunks +14 lines, -15 lines 0 comments Download
M sync/syncable/syncable_id_unittest.cc View 1 chunk +1 line, -3 lines 0 comments Download
M sync/syncable/syncable_mock.h View 1 chunk +4 lines, -4 lines 0 comments Download
M sync/syncable/syncable_mock.cc View 1 chunk +1 line, -1 line 0 comments Download
M sync/syncable/syncable_unittest.cc View 5 chunks +7 lines, -10 lines 0 comments Download
M sync/syncable/write_transaction_info.h View 1 chunk +1 line, -1 line 0 comments Download
M sync/test/engine/mock_connection_manager.h View 1 5 chunks +8 lines, -10 lines 0 comments Download
M sync/test/engine/mock_connection_manager.cc View 1 6 chunks +8 lines, -9 lines 0 comments Download
M sync/test/engine/syncer_command_test.h View 2 chunks +2 lines, -2 lines 0 comments Download
M sync/test/null_transaction_observer.h View 1 chunk +1 line, -1 line 0 comments Download
M sync/test/null_transaction_observer.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M sync/tools/sync_client.cc View 1 2 3 4 13 chunks +48 lines, -44 lines 0 comments Download
M sync/tools/sync_listen_notifications.cc View 1 2 3 4 8 chunks +25 lines, -21 lines 0 comments Download
M sync/util/cryptographer.h View 5 chunks +6 lines, -6 lines 0 comments Download
M sync/util/cryptographer.cc View 1 4 chunks +36 lines, -38 lines 0 comments Download
M sync/util/cryptographer_unittest.cc View 1 10 chunks +17 lines, -21 lines 0 comments Download
M sync/util/data_type_histogram.h View 1 2 1 chunk +16 lines, -16 lines 0 comments Download
M sync/util/data_type_histogram_unittest.cc View 1 3 chunks +6 lines, -9 lines 0 comments Download
M sync/util/logging.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
akalin
+zea for review
8 years, 5 months ago (2012-07-18 22:45:04 UTC) #1
Nicolas Zea
Mainly nits, but looks like linux_rel has a legit compile failure? http://codereview.chromium.org/10795018/diff/2001/sync/internal_api/base_node.cc File sync/internal_api/base_node.cc (right): ...
8 years, 5 months ago (2012-07-19 19:37:55 UTC) #2
akalin
PTAL http://codereview.chromium.org/10795018/diff/2001/sync/internal_api/base_node.cc File sync/internal_api/base_node.cc (right): http://codereview.chromium.org/10795018/diff/2001/sync/internal_api/base_node.cc#newcode125 sync/internal_api/base_node.cc:125: ModelTypeToString(GetModelType()) << "."; On 2012/07/19 19:37:56, nzea wrote: ...
8 years, 5 months ago (2012-07-19 20:56:02 UTC) #3
akalin
http://codereview.chromium.org/10795018/diff/2001/sync/syncable/mutable_entry.h File sync/syncable/mutable_entry.h (right): http://codereview.chromium.org/10795018/diff/2001/sync/syncable/mutable_entry.h#newcode90 sync/syncable/mutable_entry.h:90: friend class WriteNode; On 2012/07/19 19:37:56, nzea wrote: > ...
8 years, 5 months ago (2012-07-19 20:57:23 UTC) #4
Nicolas Zea
LGTM!
8 years, 5 months ago (2012-07-19 21:15:15 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akalin@chromium.org/10795018/11001
8 years, 5 months ago (2012-07-19 21:37:05 UTC) #6
commit-bot: I haz the power
Failed to apply patch for sync/engine/sync_scheduler.cc: While running patch -p1 --forward --force; patching file sync/engine/sync_scheduler.cc ...
8 years, 5 months ago (2012-07-19 23:47:14 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akalin@chromium.org/10795018/9009
8 years, 5 months ago (2012-07-20 00:18:06 UTC) #8
commit-bot: I haz the power
Failed to apply patch for sync/internal_api/public/sync_manager.h: While running patch -p1 --forward --force; patching file sync/internal_api/public/sync_manager.h ...
8 years, 5 months ago (2012-07-20 01:29:49 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akalin@chromium.org/10795018/340
8 years, 5 months ago (2012-07-20 07:30:05 UTC) #10
commit-bot: I haz the power
Try job failure for 10795018-340 (retry) on mac_rel for step "browser_tests". It's a second try, ...
8 years, 5 months ago (2012-07-20 08:39:48 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akalin@chromium.org/10795018/340
8 years, 5 months ago (2012-07-20 16:00:56 UTC) #12
commit-bot: I haz the power
8 years, 5 months ago (2012-07-20 17:25:44 UTC) #13
Change committed as 147675

Powered by Google App Engine
This is Rietveld 408576698