diff options
author | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-10 01:06:41 +0000 |
---|---|---|
committer | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-10 01:06:41 +0000 |
commit | 1bcf30ec84f19d40cc5c3f6051d0bb5860bfc74a (patch) | |
tree | a1c5b036a8aad3554aaca8947c3a249a8d5945e3 | |
parent | 70180a806fe954878cdca606620da7a153a9efe7 (diff) | |
download | chromium_src-1bcf30ec84f19d40cc5c3f6051d0bb5860bfc74a.zip chromium_src-1bcf30ec84f19d40cc5c3f6051d0bb5860bfc74a.tar.gz chromium_src-1bcf30ec84f19d40cc5c3f6051d0bb5860bfc74a.tar.bz2 |
[Sync] Create new top-level sync/ directory
Move sync .proto files to sync/protocol. Update all references.
This begins the Great Sync Migration.
BUG=117585,43624
TEST=
Review URL: https://chromiumcodereview.appspot.com/9668028
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125967 0039d316-1c4b-4281-b951-d872f2087c98
115 files changed, 259 insertions, 251 deletions
diff --git a/chrome/browser/DEPS b/chrome/browser/DEPS index 5233c12..5346907 100644 --- a/chrome/browser/DEPS +++ b/chrome/browser/DEPS @@ -18,6 +18,7 @@ include_rules = [ "+sandbox/src", # The path doesn't say it, but this is the Windows sandbox. "+skia/ext", "+skia/include", + "+sync/protocol", # Sync protobuf files. "+third_party/cros", "+third_party/cros_system_api", "+webkit/database", diff --git a/chrome/browser/extensions/app_notification_manager.cc b/chrome/browser/extensions/app_notification_manager.cc index f1272fa..40aa084 100644 --- a/chrome/browser/extensions/app_notification_manager.cc +++ b/chrome/browser/extensions/app_notification_manager.cc @@ -13,11 +13,11 @@ #include "base/stl_util.h" #include "base/time.h" #include "chrome/browser/profiles/profile.h" -#include "chrome/browser/sync/protocol/app_notification_specifics.pb.h" -#include "chrome/browser/sync/protocol/sync.pb.h" #include "chrome/common/chrome_notification_types.h" #include "chrome/common/extensions/extension.h" #include "content/public/browser/notification_service.h" +#include "sync/protocol/app_notification_specifics.pb.h" +#include "sync/protocol/sync.pb.h" using content::BrowserThread; diff --git a/chrome/browser/extensions/app_notification_manager_sync_unittest.cc b/chrome/browser/extensions/app_notification_manager_sync_unittest.cc index ffdedf6..b6e41ba 100644 --- a/chrome/browser/extensions/app_notification_manager_sync_unittest.cc +++ b/chrome/browser/extensions/app_notification_manager_sync_unittest.cc @@ -8,10 +8,10 @@ #include "base/string_number_conversions.h" #include "chrome/browser/extensions/app_notification.h" #include "chrome/browser/extensions/app_notification_manager.h" -#include "chrome/browser/sync/protocol/app_notification_specifics.pb.h" -#include "chrome/browser/sync/protocol/sync.pb.h" #include "chrome/test/base/testing_profile.h" #include "content/test/test_browser_thread.h" +#include "sync/protocol/app_notification_specifics.pb.h" +#include "sync/protocol/sync.pb.h" #include "testing/gtest/include/gtest/gtest.h" using content::BrowserThread; diff --git a/chrome/browser/extensions/extension_service_unittest.cc b/chrome/browser/extensions/extension_service_unittest.cc index 16bc795f..ab6f358c 100644 --- a/chrome/browser/extensions/extension_service_unittest.cc +++ b/chrome/browser/extensions/extension_service_unittest.cc @@ -33,13 +33,13 @@ #include "chrome/browser/extensions/extension_error_reporter.h" #include "chrome/browser/extensions/extension_global_error.h" #include "chrome/browser/extensions/extension_service.h" +#include "chrome/browser/extensions/extension_sorting.h" #include "chrome/browser/extensions/extension_special_storage_policy.h" #include "chrome/browser/extensions/extension_sync_data.h" #include "chrome/browser/extensions/extension_updater.h" #include "chrome/browser/extensions/external_extension_provider_impl.h" #include "chrome/browser/extensions/external_extension_provider_interface.h" #include "chrome/browser/extensions/external_pref_extension_loader.h" -#include "chrome/browser/extensions/extension_sorting.h" #include "chrome/browser/extensions/installed_loader.h" #include "chrome/browser/extensions/pack_extension_job.cc" #include "chrome/browser/extensions/pending_extension_info.h" @@ -49,9 +49,6 @@ #include "chrome/browser/prefs/browser_prefs.h" #include "chrome/browser/prefs/pref_service_mock_builder.h" #include "chrome/browser/prefs/scoped_user_pref_update.h" -#include "chrome/browser/sync/protocol/app_specifics.pb.h" -#include "chrome/browser/sync/protocol/extension_specifics.pb.h" -#include "chrome/browser/sync/protocol/sync.pb.h" #include "chrome/browser/themes/theme_service_factory.h" #include "chrome/common/chrome_notification_types.h" #include "chrome/common/chrome_paths.h" @@ -77,6 +74,9 @@ #include "net/base/cookie_options.h" #include "net/url_request/url_request_context.h" #include "net/url_request/url_request_context_getter.h" +#include "sync/protocol/app_specifics.pb.h" +#include "sync/protocol/extension_specifics.pb.h" +#include "sync/protocol/sync.pb.h" #include "testing/gtest/include/gtest/gtest.h" #include "testing/platform_test.h" #include "webkit/database/database_tracker.h" diff --git a/chrome/browser/extensions/extension_sync_data.cc b/chrome/browser/extensions/extension_sync_data.cc index e656eff..c2095ad 100644 --- a/chrome/browser/extensions/extension_sync_data.cc +++ b/chrome/browser/extensions/extension_sync_data.cc @@ -6,9 +6,9 @@ #include "base/logging.h" #include "chrome/browser/extensions/extension_service.h" -#include "chrome/browser/sync/protocol/app_specifics.pb.h" -#include "chrome/browser/sync/protocol/extension_specifics.pb.h" -#include "chrome/browser/sync/protocol/sync.pb.h" +#include "sync/protocol/app_specifics.pb.h" +#include "sync/protocol/extension_specifics.pb.h" +#include "sync/protocol/sync.pb.h" ExtensionSyncData::ExtensionSyncData() : uninstalled_(false), diff --git a/chrome/browser/extensions/extension_sync_data_unittest.cc b/chrome/browser/extensions/extension_sync_data_unittest.cc index 4be1055..b269137 100644 --- a/chrome/browser/extensions/extension_sync_data_unittest.cc +++ b/chrome/browser/extensions/extension_sync_data_unittest.cc @@ -6,10 +6,10 @@ #include "base/memory/scoped_ptr.h" #include "base/version.h" -#include "chrome/browser/sync/protocol/app_specifics.pb.h" -#include "chrome/browser/sync/protocol/extension_specifics.pb.h" -#include "chrome/browser/sync/protocol/sync.pb.h" #include "googleurl/src/gurl.h" +#include "sync/protocol/app_specifics.pb.h" +#include "sync/protocol/extension_specifics.pb.h" +#include "sync/protocol/sync.pb.h" #include "testing/gtest/include/gtest/gtest.h" namespace { diff --git a/chrome/browser/extensions/settings/setting_sync_data.cc b/chrome/browser/extensions/settings/setting_sync_data.cc index fa71ff8..6f0cd08 100644 --- a/chrome/browser/extensions/settings/setting_sync_data.cc +++ b/chrome/browser/extensions/settings/setting_sync_data.cc @@ -7,9 +7,9 @@ #include "base/json/json_reader.h" #include "base/json/json_writer.h" #include "chrome/browser/sync/api/sync_data.h" -#include "chrome/browser/sync/protocol/app_setting_specifics.pb.h" -#include "chrome/browser/sync/protocol/extension_setting_specifics.pb.h" -#include "chrome/browser/sync/protocol/sync.pb.h" +#include "sync/protocol/app_setting_specifics.pb.h" +#include "sync/protocol/extension_setting_specifics.pb.h" +#include "sync/protocol/sync.pb.h" namespace extensions { diff --git a/chrome/browser/extensions/settings/settings_sync_util.cc b/chrome/browser/extensions/settings/settings_sync_util.cc index 5fcc9a6..be45a74 100644 --- a/chrome/browser/extensions/settings/settings_sync_util.cc +++ b/chrome/browser/extensions/settings/settings_sync_util.cc @@ -4,11 +4,11 @@ #include "chrome/browser/extensions/settings/settings_sync_util.h" -#include "base/values.h" #include "base/json/json_writer.h" -#include "chrome/browser/sync/protocol/app_setting_specifics.pb.h" -#include "chrome/browser/sync/protocol/extension_setting_specifics.pb.h" -#include "chrome/browser/sync/protocol/sync.pb.h" +#include "base/values.h" +#include "sync/protocol/app_setting_specifics.pb.h" +#include "sync/protocol/extension_setting_specifics.pb.h" +#include "sync/protocol/sync.pb.h" namespace extensions { diff --git a/chrome/browser/extensions/settings/syncable_settings_storage.cc b/chrome/browser/extensions/settings/syncable_settings_storage.cc index 9ef9dac..51c52b4 100644 --- a/chrome/browser/extensions/settings/syncable_settings_storage.cc +++ b/chrome/browser/extensions/settings/syncable_settings_storage.cc @@ -8,8 +8,8 @@ #include "chrome/browser/extensions/settings/settings_namespace.h" #include "chrome/browser/extensions/settings/settings_sync_util.h" #include "chrome/browser/sync/api/sync_data.h" -#include "chrome/browser/sync/protocol/extension_setting_specifics.pb.h" #include "content/public/browser/browser_thread.h" +#include "sync/protocol/extension_setting_specifics.pb.h" namespace extensions { diff --git a/chrome/browser/prefs/pref_model_associator.cc b/chrome/browser/prefs/pref_model_associator.cc index dd28d81..21c53a2 100644 --- a/chrome/browser/prefs/pref_model_associator.cc +++ b/chrome/browser/prefs/pref_model_associator.cc @@ -12,10 +12,10 @@ #include "base/utf_string_conversions.h" #include "base/values.h" #include "chrome/browser/sync/api/sync_change.h" -#include "chrome/browser/sync/protocol/preference_specifics.pb.h" -#include "chrome/browser/sync/protocol/sync.pb.h" #include "chrome/common/chrome_notification_types.h" #include "chrome/common/pref_names.h" +#include "sync/protocol/preference_specifics.pb.h" +#include "sync/protocol/sync.pb.h" using syncable::PREFERENCES; diff --git a/chrome/browser/search_engines/template_url_service.cc b/chrome/browser/search_engines/template_url_service.cc index 80e6ba8..3a84654 100644 --- a/chrome/browser/search_engines/template_url_service.cc +++ b/chrome/browser/search_engines/template_url_service.cc @@ -23,8 +23,8 @@ #include "chrome/browser/prefs/pref_set_observer.h" #include "chrome/browser/profiles/profile.h" #include "chrome/browser/protector/base_setting_change.h" -#include "chrome/browser/protector/protector_service_factory.h" #include "chrome/browser/protector/protector_service.h" +#include "chrome/browser/protector/protector_service_factory.h" #include "chrome/browser/rlz/rlz.h" #include "chrome/browser/search_engines/search_host_to_urls_map.h" #include "chrome/browser/search_engines/search_terms_data.h" @@ -33,8 +33,6 @@ #include "chrome/browser/search_engines/template_url_service_observer.h" #include "chrome/browser/search_engines/util.h" #include "chrome/browser/sync/api/sync_change.h" -#include "chrome/browser/sync/protocol/search_engine_specifics.pb.h" -#include "chrome/browser/sync/protocol/sync.pb.h" #include "chrome/common/chrome_notification_types.h" #include "chrome/common/chrome_switches.h" #include "chrome/common/env_vars.h" @@ -44,6 +42,8 @@ #include "chrome/common/url_constants.h" #include "content/public/browser/notification_service.h" #include "net/base/net_util.h" +#include "sync/protocol/search_engine_specifics.pb.h" +#include "sync/protocol/sync.pb.h" #include "ui/base/l10n/l10n_util.h" typedef SearchHostToURLsMap::TemplateURLSet TemplateURLSet; diff --git a/chrome/browser/search_engines/template_url_service_sync_unittest.cc b/chrome/browser/search_engines/template_url_service_sync_unittest.cc index b425a27..dbccfa7 100644 --- a/chrome/browser/search_engines/template_url_service_sync_unittest.cc +++ b/chrome/browser/search_engines/template_url_service_sync_unittest.cc @@ -9,13 +9,13 @@ #include "chrome/browser/search_engines/template_url.h" #include "chrome/browser/search_engines/template_url_service.h" #include "chrome/browser/search_engines/template_url_service_factory.h" -#include "chrome/browser/sync/protocol/search_engine_specifics.pb.h" -#include "chrome/browser/sync/protocol/sync.pb.h" #include "chrome/common/chrome_notification_types.h" #include "chrome/common/pref_names.h" #include "chrome/test/base/testing_pref_service.h" #include "chrome/test/base/testing_profile.h" #include "content/public/browser/notification_service.h" +#include "sync/protocol/search_engine_specifics.pb.h" +#include "sync/protocol/sync.pb.h" #include "testing/gtest/include/gtest/gtest.h" using base::Time; diff --git a/chrome/browser/sync/abstract_profile_sync_service_test.cc b/chrome/browser/sync/abstract_profile_sync_service_test.cc index 6360ea6..6797dbf 100644 --- a/chrome/browser/sync/abstract_profile_sync_service_test.cc +++ b/chrome/browser/sync/abstract_profile_sync_service_test.cc @@ -8,11 +8,11 @@ #include "base/bind_helpers.h" #include "base/location.h" #include "chrome/browser/sync/internal_api/write_transaction.h" -#include "chrome/browser/sync/protocol/sync.pb.h" #include "chrome/browser/sync/syncable/syncable.h" -#include "chrome/browser/sync/test_profile_sync_service.h" #include "chrome/browser/sync/test/engine/test_id_factory.h" +#include "chrome/browser/sync/test_profile_sync_service.h" #include "chrome/browser/sync/util/cryptographer.h" +#include "sync/protocol/sync.pb.h" using browser_sync::TestIdFactory; using content::BrowserThread; diff --git a/chrome/browser/sync/api/sync_change_unittest.cc b/chrome/browser/sync/api/sync_change_unittest.cc index 26308d4..cdcd518 100644 --- a/chrome/browser/sync/api/sync_change_unittest.cc +++ b/chrome/browser/sync/api/sync_change_unittest.cc @@ -8,9 +8,9 @@ #include "base/memory/scoped_ptr.h" #include "base/values.h" -#include "chrome/browser/sync/protocol/preference_specifics.pb.h" -#include "chrome/browser/sync/protocol/sync.pb.h" #include "chrome/browser/sync/protocol/proto_value_conversions.h" +#include "sync/protocol/preference_specifics.pb.h" +#include "sync/protocol/sync.pb.h" #include "testing/gtest/include/gtest/gtest.h" using browser_sync::EntitySpecificsToValue; diff --git a/chrome/browser/sync/api/sync_data.cc b/chrome/browser/sync/api/sync_data.cc index 180cb76..faf6694 100644 --- a/chrome/browser/sync/api/sync_data.cc +++ b/chrome/browser/sync/api/sync_data.cc @@ -12,8 +12,8 @@ #include "base/values.h" #include "chrome/browser/sync/internal_api/base_node.h" #include "chrome/browser/sync/protocol/proto_value_conversions.h" -#include "chrome/browser/sync/protocol/sync.pb.h" #include "chrome/browser/sync/syncable/model_type.h" +#include "sync/protocol/sync.pb.h" void SyncData::ImmutableSyncEntityTraits::InitializeWrapper( Wrapper* wrapper) { diff --git a/chrome/browser/sync/backend_migrator.cc b/chrome/browser/sync/backend_migrator.cc index b74a48b..28cc2c9 100644 --- a/chrome/browser/sync/backend_migrator.cc +++ b/chrome/browser/sync/backend_migrator.cc @@ -10,11 +10,11 @@ #include "chrome/browser/sync/internal_api/configure_reason.h" #include "chrome/browser/sync/internal_api/read_transaction.h" #include "chrome/browser/sync/profile_sync_service.h" -#include "chrome/browser/sync/protocol/sync.pb.h" #include "chrome/browser/sync/sessions/session_state.h" #include "chrome/common/chrome_notification_types.h" #include "content/public/browser/notification_details.h" #include "content/public/browser/notification_source.h" +#include "sync/protocol/sync.pb.h" using syncable::ModelTypeSet; diff --git a/chrome/browser/sync/backend_migrator_unittest.cc b/chrome/browser/sync/backend_migrator_unittest.cc index c8b5978..0c53bde 100644 --- a/chrome/browser/sync/backend_migrator_unittest.cc +++ b/chrome/browser/sync/backend_migrator_unittest.cc @@ -9,11 +9,11 @@ #include "chrome/browser/sync/glue/data_type_manager_mock.h" #include "chrome/browser/sync/internal_api/write_transaction.h" #include "chrome/browser/sync/profile_sync_service_mock.h" -#include "chrome/browser/sync/protocol/sync.pb.h" #include "chrome/browser/sync/sessions/session_state.h" #include "chrome/browser/sync/syncable/model_type_test_util.h" #include "chrome/browser/sync/test/engine/test_user_share.h" #include "chrome/common/chrome_notification_types.h" +#include "sync/protocol/sync.pb.h" #include "testing/gmock/include/gmock/gmock.h" #include "testing/gtest/include/gtest/gtest.h" diff --git a/chrome/browser/sync/engine/apply_updates_command_unittest.cc b/chrome/browser/sync/engine/apply_updates_command_unittest.cc index 8b98461..1672d6e 100644 --- a/chrome/browser/sync/engine/apply_updates_command_unittest.cc +++ b/chrome/browser/sync/engine/apply_updates_command_unittest.cc @@ -11,8 +11,6 @@ #include "chrome/browser/sync/engine/nigori_util.h" #include "chrome/browser/sync/engine/syncer.h" #include "chrome/browser/sync/engine/syncer_util.h" -#include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" -#include "chrome/browser/sync/protocol/password_specifics.pb.h" #include "chrome/browser/sync/sessions/sync_session.h" #include "chrome/browser/sync/syncable/syncable.h" #include "chrome/browser/sync/syncable/syncable_id.h" @@ -21,6 +19,8 @@ #include "chrome/browser/sync/test/engine/test_id_factory.h" #include "chrome/browser/sync/test/fake_encryptor.h" #include "chrome/browser/sync/util/cryptographer.h" +#include "sync/protocol/bookmark_specifics.pb.h" +#include "sync/protocol/password_specifics.pb.h" #include "testing/gtest/include/gtest/gtest.h" namespace browser_sync { diff --git a/chrome/browser/sync/engine/build_commit_command.cc b/chrome/browser/sync/engine/build_commit_command.cc index 06adac6..c2a40f1 100644 --- a/chrome/browser/sync/engine/build_commit_command.cc +++ b/chrome/browser/sync/engine/build_commit_command.cc @@ -11,11 +11,11 @@ #include "base/string_util.h" #include "chrome/browser/sync/engine/syncer_proto_util.h" -#include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" #include "chrome/browser/sync/sessions/sync_session.h" #include "chrome/browser/sync/syncable/syncable.h" #include "chrome/browser/sync/syncable/syncable_changes_version.h" #include "chrome/browser/sync/util/time.h" +#include "sync/protocol/bookmark_specifics.pb.h" using std::set; using std::string; diff --git a/chrome/browser/sync/engine/clear_data_command_unittest.cc b/chrome/browser/sync/engine/clear_data_command_unittest.cc index 0f56dad..08f842c 100644 --- a/chrome/browser/sync/engine/clear_data_command_unittest.cc +++ b/chrome/browser/sync/engine/clear_data_command_unittest.cc @@ -3,12 +3,12 @@ // found in the LICENSE file. #include "chrome/browser/sync/engine/clear_data_command.h" -#include "chrome/browser/sync/protocol/autofill_specifics.pb.h" -#include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" -#include "chrome/browser/sync/protocol/preference_specifics.pb.h" -#include "chrome/browser/sync/protocol/sync.pb.h" #include "chrome/browser/sync/test/engine/syncer_command_test.h" #include "chrome/browser/sync/test/sessions/test_scoped_session_event_listener.h" +#include "sync/protocol/autofill_specifics.pb.h" +#include "sync/protocol/bookmark_specifics.pb.h" +#include "sync/protocol/preference_specifics.pb.h" +#include "sync/protocol/sync.pb.h" namespace browser_sync { diff --git a/chrome/browser/sync/engine/conflict_resolver.cc b/chrome/browser/sync/engine/conflict_resolver.cc index c608ba5..b91e8d1 100644 --- a/chrome/browser/sync/engine/conflict_resolver.cc +++ b/chrome/browser/sync/engine/conflict_resolver.cc @@ -13,11 +13,11 @@ #include "base/metrics/histogram.h" #include "chrome/browser/sync/engine/syncer.h" #include "chrome/browser/sync/engine/syncer_util.h" -#include "chrome/browser/sync/protocol/nigori_specifics.pb.h" #include "chrome/browser/sync/protocol/service_constants.h" #include "chrome/browser/sync/sessions/status_controller.h" #include "chrome/browser/sync/syncable/syncable.h" #include "chrome/browser/sync/util/cryptographer.h" +#include "sync/protocol/nigori_specifics.pb.h" using std::list; using std::map; diff --git a/chrome/browser/sync/engine/download_updates_command.h b/chrome/browser/sync/engine/download_updates_command.h index 6494ecb..b15a04e 100644 --- a/chrome/browser/sync/engine/download_updates_command.h +++ b/chrome/browser/sync/engine/download_updates_command.h @@ -11,8 +11,8 @@ #include "base/gtest_prod_util.h" #include "chrome/browser/sync/engine/model_safe_worker.h" #include "chrome/browser/sync/engine/syncer_command.h" -#include "chrome/browser/sync/protocol/sync.pb.h" #include "chrome/browser/sync/syncable/model_type.h" +#include "sync/protocol/sync.pb.h" namespace sync_pb { class EntitySpecifics; diff --git a/chrome/browser/sync/engine/download_updates_command_unittest.cc b/chrome/browser/sync/engine/download_updates_command_unittest.cc index 0bcc0d7..9c81f98 100644 --- a/chrome/browser/sync/engine/download_updates_command_unittest.cc +++ b/chrome/browser/sync/engine/download_updates_command_unittest.cc @@ -3,12 +3,12 @@ // found in the LICENSE file. #include "chrome/browser/sync/engine/download_updates_command.h" -#include "chrome/browser/sync/protocol/autofill_specifics.pb.h" -#include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" -#include "chrome/browser/sync/protocol/preference_specifics.pb.h" -#include "chrome/browser/sync/protocol/sync.pb.h" #include "chrome/browser/sync/test/engine/fake_model_worker.h" #include "chrome/browser/sync/test/engine/syncer_command_test.h" +#include "sync/protocol/autofill_specifics.pb.h" +#include "sync/protocol/bookmark_specifics.pb.h" +#include "sync/protocol/preference_specifics.pb.h" +#include "sync/protocol/sync.pb.h" using ::testing::_; namespace browser_sync { diff --git a/chrome/browser/sync/engine/net/server_connection_manager.cc b/chrome/browser/sync/engine/net/server_connection_manager.cc index 6669a12..2d53147 100644 --- a/chrome/browser/sync/engine/net/server_connection_manager.cc +++ b/chrome/browser/sync/engine/net/server_connection_manager.cc @@ -15,9 +15,9 @@ #include "chrome/browser/sync/engine/net/url_translator.h" #include "chrome/browser/sync/engine/syncer.h" #include "chrome/browser/sync/engine/syncproto.h" -#include "chrome/browser/sync/protocol/sync.pb.h" #include "googleurl/src/gurl.h" #include "net/http/http_status_code.h" +#include "sync/protocol/sync.pb.h" namespace browser_sync { diff --git a/chrome/browser/sync/engine/nigori_util.h b/chrome/browser/sync/engine/nigori_util.h index 33ba53d..e135ca6d 100644 --- a/chrome/browser/sync/engine/nigori_util.h +++ b/chrome/browser/sync/engine/nigori_util.h @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -9,8 +9,8 @@ #pragma once #include "base/compiler_specific.h" -#include "chrome/browser/sync/protocol/nigori_specifics.pb.h" #include "chrome/browser/sync/syncable/model_type.h" +#include "sync/protocol/nigori_specifics.pb.h" namespace browser_sync { class Cryptographer; diff --git a/chrome/browser/sync/engine/nigori_util_unittest.cc b/chrome/browser/sync/engine/nigori_util_unittest.cc index 7d3fc34..e0d5053 100644 --- a/chrome/browser/sync/engine/nigori_util_unittest.cc +++ b/chrome/browser/sync/engine/nigori_util_unittest.cc @@ -2,10 +2,10 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" -#include "chrome/browser/sync/protocol/sync.pb.h" -#include "chrome/browser/sync/util/cryptographer.h" #include "chrome/browser/sync/engine/nigori_util.h" +#include "chrome/browser/sync/util/cryptographer.h" +#include "sync/protocol/bookmark_specifics.pb.h" +#include "sync/protocol/sync.pb.h" #include "testing/gtest/include/gtest/gtest.h" namespace syncable { diff --git a/chrome/browser/sync/engine/process_commit_response_command_unittest.cc b/chrome/browser/sync/engine/process_commit_response_command_unittest.cc index 44a9515..065d40d 100644 --- a/chrome/browser/sync/engine/process_commit_response_command_unittest.cc +++ b/chrome/browser/sync/engine/process_commit_response_command_unittest.cc @@ -7,14 +7,14 @@ #include "base/location.h" #include "base/stringprintf.h" #include "chrome/browser/sync/engine/process_commit_response_command.h" -#include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" -#include "chrome/browser/sync/protocol/sync.pb.h" #include "chrome/browser/sync/sessions/sync_session.h" #include "chrome/browser/sync/syncable/syncable.h" #include "chrome/browser/sync/syncable/syncable_id.h" #include "chrome/browser/sync/test/engine/fake_model_worker.h" #include "chrome/browser/sync/test/engine/syncer_command_test.h" #include "chrome/browser/sync/test/engine/test_id_factory.h" +#include "sync/protocol/bookmark_specifics.pb.h" +#include "sync/protocol/sync.pb.h" #include "testing/gtest/include/gtest/gtest.h" namespace browser_sync { diff --git a/chrome/browser/sync/engine/sync_scheduler.cc b/chrome/browser/sync/engine/sync_scheduler.cc index ebe74a8..a4dfbaa 100644 --- a/chrome/browser/sync/engine/sync_scheduler.cc +++ b/chrome/browser/sync/engine/sync_scheduler.cc @@ -14,10 +14,10 @@ #include "base/message_loop.h" #include "base/rand_util.h" #include "chrome/browser/sync/engine/syncer.h" -#include "chrome/browser/sync/protocol/sync.pb.h" #include "chrome/browser/sync/protocol/proto_enum_conversions.h" #include "chrome/browser/sync/util/data_type_histogram.h" #include "chrome/browser/sync/util/logging.h" +#include "sync/protocol/sync.pb.h" using base::TimeDelta; using base::TimeTicks; diff --git a/chrome/browser/sync/engine/syncapi_internal.cc b/chrome/browser/sync/engine/syncapi_internal.cc index b0c5e3a..ab90c1c 100644 --- a/chrome/browser/sync/engine/syncapi_internal.cc +++ b/chrome/browser/sync/engine/syncapi_internal.cc @@ -6,8 +6,8 @@ #include "base/memory/scoped_ptr.h" #include "chrome/browser/sync/util/cryptographer.h" -#include "chrome/browser/sync/protocol/password_specifics.pb.h" -#include "chrome/browser/sync/protocol/sync.pb.h" +#include "sync/protocol/password_specifics.pb.h" +#include "sync/protocol/sync.pb.h" using browser_sync::Cryptographer; diff --git a/chrome/browser/sync/engine/syncer_proto_util.cc b/chrome/browser/sync/engine/syncer_proto_util.cc index d0712b5..e2e235b 100644 --- a/chrome/browser/sync/engine/syncer_proto_util.cc +++ b/chrome/browser/sync/engine/syncer_proto_util.cc @@ -10,14 +10,14 @@ #include "chrome/browser/sync/engine/syncer.h" #include "chrome/browser/sync/engine/syncer_types.h" #include "chrome/browser/sync/protocol/service_constants.h" -#include "chrome/browser/sync/protocol/sync.pb.h" -#include "chrome/browser/sync/protocol/sync_enums.pb.h" #include "chrome/browser/sync/protocol/sync_protocol_error.h" #include "chrome/browser/sync/sessions/sync_session.h" #include "chrome/browser/sync/syncable/model_type.h" #include "chrome/browser/sync/syncable/syncable-inl.h" #include "chrome/browser/sync/syncable/syncable.h" #include "chrome/browser/sync/util/time.h" +#include "sync/protocol/sync.pb.h" +#include "sync/protocol/sync_enums.pb.h" using browser_sync::SyncProtocolErrorType; using std::string; diff --git a/chrome/browser/sync/engine/syncer_proto_util_unittest.cc b/chrome/browser/sync/engine/syncer_proto_util_unittest.cc index 615a4ef..41e3cc0 100644 --- a/chrome/browser/sync/engine/syncer_proto_util_unittest.cc +++ b/chrome/browser/sync/engine/syncer_proto_util_unittest.cc @@ -13,15 +13,15 @@ #include "chrome/browser/sync/engine/syncproto.h" #include "chrome/browser/sync/sessions/session_state.h" #include "chrome/browser/sync/sessions/sync_session_context.h" -#include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" -#include "chrome/browser/sync/protocol/password_specifics.pb.h" -#include "chrome/browser/sync/protocol/sync.pb.h" -#include "chrome/browser/sync/protocol/sync_enums.pb.h" #include "chrome/browser/sync/syncable/blob.h" #include "chrome/browser/sync/syncable/model_type_test_util.h" #include "chrome/browser/sync/syncable/syncable.h" #include "chrome/browser/sync/test/engine/mock_connection_manager.h" #include "chrome/browser/sync/test/engine/test_directory_setter_upper.h" +#include "sync/protocol/bookmark_specifics.pb.h" +#include "sync/protocol/password_specifics.pb.h" +#include "sync/protocol/sync.pb.h" +#include "sync/protocol/sync_enums.pb.h" #include "testing/gtest/include/gtest/gtest.h" diff --git a/chrome/browser/sync/engine/syncer_unittest.cc b/chrome/browser/sync/engine/syncer_unittest.cc index 2821cbc..9e7ea5e 100644 --- a/chrome/browser/sync/engine/syncer_unittest.cc +++ b/chrome/browser/sync/engine/syncer_unittest.cc @@ -26,16 +26,12 @@ #include "chrome/browser/sync/engine/get_commit_ids_command.h" #include "chrome/browser/sync/engine/model_safe_worker.h" #include "chrome/browser/sync/engine/net/server_connection_manager.h" -#include "chrome/browser/sync/engine/process_updates_command.h" #include "chrome/browser/sync/engine/nigori_util.h" +#include "chrome/browser/sync/engine/process_updates_command.h" #include "chrome/browser/sync/engine/syncer.h" #include "chrome/browser/sync/engine/syncer_proto_util.h" #include "chrome/browser/sync/engine/syncer_util.h" #include "chrome/browser/sync/engine/syncproto.h" -#include "chrome/browser/sync/protocol/sync.pb.h" -#include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" -#include "chrome/browser/sync/protocol/nigori_specifics.pb.h" -#include "chrome/browser/sync/protocol/preference_specifics.pb.h" #include "chrome/browser/sync/sessions/sync_session_context.h" #include "chrome/browser/sync/syncable/model_type.h" #include "chrome/browser/sync/syncable/syncable.h" @@ -48,6 +44,10 @@ #include "chrome/browser/sync/test/fake_extensions_activity_monitor.h" #include "chrome/browser/sync/util/cryptographer.h" #include "chrome/browser/sync/util/time.h" +#include "sync/protocol/bookmark_specifics.pb.h" +#include "sync/protocol/nigori_specifics.pb.h" +#include "sync/protocol/preference_specifics.pb.h" +#include "sync/protocol/sync.pb.h" #include "testing/gtest/include/gtest/gtest.h" using base::TimeDelta; diff --git a/chrome/browser/sync/engine/syncer_util.cc b/chrome/browser/sync/engine/syncer_util.cc index 6a1af32..9af18aa 100644 --- a/chrome/browser/sync/engine/syncer_util.cc +++ b/chrome/browser/sync/engine/syncer_util.cc @@ -16,15 +16,15 @@ #include "chrome/browser/sync/engine/syncer_proto_util.h" #include "chrome/browser/sync/engine/syncer_types.h" #include "chrome/browser/sync/engine/syncproto.h" -#include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" -#include "chrome/browser/sync/protocol/nigori_specifics.pb.h" -#include "chrome/browser/sync/protocol/password_specifics.pb.h" -#include "chrome/browser/sync/protocol/sync.pb.h" #include "chrome/browser/sync/syncable/model_type.h" #include "chrome/browser/sync/syncable/syncable.h" #include "chrome/browser/sync/syncable/syncable_changes_version.h" #include "chrome/browser/sync/util/cryptographer.h" #include "chrome/browser/sync/util/time.h" +#include "sync/protocol/bookmark_specifics.pb.h" +#include "sync/protocol/nigori_specifics.pb.h" +#include "sync/protocol/password_specifics.pb.h" +#include "sync/protocol/sync.pb.h" using syncable::BASE_VERSION; using syncable::Blob; diff --git a/chrome/browser/sync/engine/syncproto.h b/chrome/browser/sync/engine/syncproto.h index b53ebc8..f469c91 100644 --- a/chrome/browser/sync/engine/syncproto.h +++ b/chrome/browser/sync/engine/syncproto.h @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // @@ -8,9 +8,9 @@ #define CHROME_BROWSER_SYNC_ENGINE_SYNCPROTO_H_ #pragma once -#include "chrome/browser/sync/protocol/sync.pb.h" #include "chrome/browser/sync/syncable/model_type.h" #include "chrome/browser/sync/syncable/syncable_id.h" +#include "sync/protocol/sync.pb.h" namespace browser_sync { diff --git a/chrome/browser/sync/engine/verify_updates_command.cc b/chrome/browser/sync/engine/verify_updates_command.cc index 373431e..58a3c8d 100644 --- a/chrome/browser/sync/engine/verify_updates_command.cc +++ b/chrome/browser/sync/engine/verify_updates_command.cc @@ -12,8 +12,8 @@ #include "chrome/browser/sync/engine/syncer_types.h" #include "chrome/browser/sync/engine/syncer_util.h" #include "chrome/browser/sync/engine/syncproto.h" -#include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" #include "chrome/browser/sync/syncable/syncable.h" +#include "sync/protocol/bookmark_specifics.pb.h" namespace browser_sync { diff --git a/chrome/browser/sync/engine/verify_updates_command_unittest.cc b/chrome/browser/sync/engine/verify_updates_command_unittest.cc index b207e6f..ce6ab1e 100644 --- a/chrome/browser/sync/engine/verify_updates_command_unittest.cc +++ b/chrome/browser/sync/engine/verify_updates_command_unittest.cc @@ -4,13 +4,13 @@ #include "base/location.h" #include "chrome/browser/sync/engine/verify_updates_command.h" -#include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" #include "chrome/browser/sync/sessions/session_state.h" #include "chrome/browser/sync/sessions/sync_session.h" #include "chrome/browser/sync/syncable/syncable.h" #include "chrome/browser/sync/syncable/syncable_id.h" #include "chrome/browser/sync/test/engine/fake_model_worker.h" #include "chrome/browser/sync/test/engine/syncer_command_test.h" +#include "sync/protocol/bookmark_specifics.pb.h" #include "testing/gtest/include/gtest/gtest.h" namespace browser_sync { diff --git a/chrome/browser/sync/glue/password_change_processor.cc b/chrome/browser/sync/glue/password_change_processor.cc index 87efd19..747c559 100644 --- a/chrome/browser/sync/glue/password_change_processor.cc +++ b/chrome/browser/sync/glue/password_change_processor.cc @@ -18,11 +18,11 @@ #include "chrome/browser/sync/internal_api/write_node.h" #include "chrome/browser/sync/internal_api/write_transaction.h" #include "chrome/browser/sync/profile_sync_service.h" -#include "chrome/browser/sync/protocol/password_specifics.pb.h" #include "chrome/common/chrome_notification_types.h" #include "chrome/common/chrome_notification_types.h" #include "content/public/browser/notification_details.h" #include "content/public/browser/notification_source.h" +#include "sync/protocol/password_specifics.pb.h" #include "webkit/forms/password_form.h" using content::BrowserThread; diff --git a/chrome/browser/sync/glue/password_model_associator.cc b/chrome/browser/sync/glue/password_model_associator.cc index 7b2e272..4181f33 100644 --- a/chrome/browser/sync/glue/password_model_associator.cc +++ b/chrome/browser/sync/glue/password_model_associator.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -16,8 +16,8 @@ #include "chrome/browser/sync/internal_api/write_node.h" #include "chrome/browser/sync/internal_api/write_transaction.h" #include "chrome/browser/sync/profile_sync_service.h" -#include "chrome/browser/sync/protocol/password_specifics.pb.h" #include "net/base/escape.h" +#include "sync/protocol/password_specifics.pb.h" #include "webkit/forms/password_form.h" using content::BrowserThread; diff --git a/chrome/browser/sync/glue/password_model_associator.h b/chrome/browser/sync/glue/password_model_associator.h index 38a3bd1..e438a3a 100644 --- a/chrome/browser/sync/glue/password_model_associator.h +++ b/chrome/browser/sync/glue/password_model_associator.h @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -15,7 +15,7 @@ #include "base/synchronization/lock.h" #include "chrome/browser/history/history_types.h" #include "chrome/browser/sync/glue/model_associator.h" -#include "chrome/browser/sync/protocol/password_specifics.pb.h" +#include "sync/protocol/password_specifics.pb.h" class MessageLoop; class PasswordStore; diff --git a/chrome/browser/sync/glue/session_change_processor.cc b/chrome/browser/sync/glue/session_change_processor.cc index d8a9b87..dd3ed78 100644 --- a/chrome/browser/sync/glue/session_change_processor.cc +++ b/chrome/browser/sync/glue/session_change_processor.cc @@ -15,16 +15,16 @@ #include "chrome/browser/sync/internal_api/change_record.h" #include "chrome/browser/sync/internal_api/read_node.h" #include "chrome/browser/sync/profile_sync_service.h" -#include "chrome/browser/sync/protocol/session_specifics.pb.h" #include "chrome/browser/ui/sync/tab_contents_wrapper_synced_tab_delegate.h" #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" #include "chrome/common/chrome_notification_types.h" #include "content/public/browser/navigation_controller.h" #include "content/public/browser/navigation_entry.h" -#include "content/public/browser/notification_service.h" #include "content/public/browser/notification_details.h" +#include "content/public/browser/notification_service.h" #include "content/public/browser/notification_source.h" #include "content/public/browser/web_contents.h" +#include "sync/protocol/session_specifics.pb.h" using content::BrowserThread; using content::NavigationController; diff --git a/chrome/browser/sync/glue/session_model_associator.cc b/chrome/browser/sync/glue/session_model_associator.cc index ab9b205..86b273d 100644 --- a/chrome/browser/sync/glue/session_model_associator.cc +++ b/chrome/browser/sync/glue/session_model_associator.cc @@ -11,8 +11,8 @@ #include "base/bind.h" #include "base/location.h" #include "base/logging.h" -#include "base/threading/sequenced_worker_pool.h" #include "base/sys_info.h" +#include "base/threading/sequenced_worker_pool.h" #include "chrome/browser/browser_process.h" #include "chrome/browser/profiles/profile.h" #include "chrome/browser/sessions/session_id.h" @@ -26,14 +26,14 @@ #include "chrome/browser/sync/internal_api/write_node.h" #include "chrome/browser/sync/internal_api/write_transaction.h" #include "chrome/browser/sync/profile_sync_service.h" -#include "chrome/browser/sync/protocol/session_specifics.pb.h" #include "chrome/browser/sync/syncable/syncable.h" #include "chrome/browser/sync/util/get_session_name.h" #include "chrome/common/chrome_notification_types.h" #include "chrome/common/url_constants.h" #include "content/public/browser/navigation_entry.h" -#include "content/public/browser/notification_service.h" #include "content/public/browser/notification_details.h" +#include "content/public/browser/notification_service.h" +#include "sync/protocol/session_specifics.pb.h" #if defined(OS_LINUX) #include "base/linux_util.h" #elif defined(OS_WIN) diff --git a/chrome/browser/sync/glue/session_model_associator_unittest.cc b/chrome/browser/sync/glue/session_model_associator_unittest.cc index e642820..4d5a018 100644 --- a/chrome/browser/sync/glue/session_model_associator_unittest.cc +++ b/chrome/browser/sync/glue/session_model_associator_unittest.cc @@ -10,17 +10,17 @@ #include "chrome/browser/sessions/session_types.h" #include "chrome/browser/sync/glue/session_model_associator.h" #include "chrome/browser/sync/glue/synced_tab_delegate.h" -#include "chrome/browser/sync/protocol/session_specifics.pb.h" #include "chrome/browser/sync/profile_sync_service_mock.h" #include "chrome/common/chrome_notification_types.h" #include "chrome/common/url_constants.h" #include "chrome/test/base/profile_mock.h" #include "content/public/browser/navigation_entry.h" -#include "content/public/browser/notification_service.h" -#include "content/public/browser/notification_details.h" #include "content/public/browser/navigation_entry.h" +#include "content/public/browser/notification_details.h" +#include "content/public/browser/notification_service.h" #include "content/public/common/page_transition_types.h" #include "content/test/test_browser_thread.h" +#include "sync/protocol/session_specifics.pb.h" #include "testing/gmock/include/gmock/gmock.h" #include "testing/gtest/include/gtest/gtest.h" diff --git a/chrome/browser/sync/glue/sync_backend_host.cc b/chrome/browser/sync/glue/sync_backend_host.cc index c7e71d4..c6b9a17a 100644 --- a/chrome/browser/sync/glue/sync_backend_host.cc +++ b/chrome/browser/sync/glue/sync_backend_host.cc @@ -30,8 +30,6 @@ #include "chrome/browser/sync/internal_api/base_transaction.h" #include "chrome/browser/sync/internal_api/read_transaction.h" #include "chrome/browser/sync/notifier/sync_notifier.h" -#include "chrome/browser/sync/protocol/encryption.pb.h" -#include "chrome/browser/sync/protocol/sync.pb.h" #include "chrome/browser/sync/sessions/session_state.h" #include "chrome/browser/sync/sync_prefs.h" #include "chrome/browser/sync/util/nigori.h" @@ -46,6 +44,8 @@ #include "jingle/notifier/base/notifier_options.h" #include "net/base/host_port_pair.h" #include "net/url_request/url_request_context_getter.h" +#include "sync/protocol/encryption.pb.h" +#include "sync/protocol/sync.pb.h" static const int kSaveChangesIntervalSeconds = 10; static const FilePath::CharType kSyncDataFolderName[] = diff --git a/chrome/browser/sync/glue/sync_backend_host.h b/chrome/browser/sync/glue/sync_backend_host.h index fb7e37f..00fb58f 100644 --- a/chrome/browser/sync/glue/sync_backend_host.h +++ b/chrome/browser/sync/glue/sync_backend_host.h @@ -19,17 +19,17 @@ #include "chrome/browser/sync/glue/backend_data_type_configurer.h" #include "chrome/browser/sync/glue/chrome_extensions_activity_monitor.h" #include "chrome/browser/sync/glue/chrome_sync_notification_bridge.h" +#include "chrome/browser/sync/internal_api/configure_reason.h" #include "chrome/browser/sync/internal_api/includes/report_unrecoverable_error_function.h" #include "chrome/browser/sync/internal_api/includes/unrecoverable_error_handler.h" -#include "chrome/browser/sync/internal_api/configure_reason.h" #include "chrome/browser/sync/internal_api/sync_manager.h" #include "chrome/browser/sync/notifier/sync_notifier_factory.h" -#include "chrome/browser/sync/protocol/encryption.pb.h" #include "chrome/browser/sync/protocol/sync_protocol_error.h" #include "chrome/browser/sync/syncable/model_type.h" #include "chrome/browser/sync/util/weak_handle.h" #include "chrome/common/net/gaia/google_service_auth_error.h" #include "googleurl/src/gurl.h" +#include "sync/protocol/encryption.pb.h" class MessageLoop; class Profile; diff --git a/chrome/browser/sync/glue/sync_backend_host_unittest.cc b/chrome/browser/sync/glue/sync_backend_host_unittest.cc index 9800a0c..1a60396 100644 --- a/chrome/browser/sync/glue/sync_backend_host_unittest.cc +++ b/chrome/browser/sync/glue/sync_backend_host_unittest.cc @@ -10,7 +10,6 @@ #include "base/message_loop.h" #include "chrome/browser/sync/engine/model_safe_worker.h" #include "chrome/browser/sync/internal_api/includes/test_unrecoverable_error_handler.h" -#include "chrome/browser/sync/protocol/encryption.pb.h" #include "chrome/browser/sync/protocol/sync_protocol_error.h" #include "chrome/browser/sync/sync_prefs.h" #include "chrome/browser/sync/syncable/model_type.h" @@ -18,6 +17,7 @@ #include "content/test/test_browser_thread.h" #include "content/test/test_url_fetcher_factory.h" #include "googleurl/src/gurl.h" +#include "sync/protocol/encryption.pb.h" #include "testing/gmock/include/gmock/gmock.h" #include "testing/gtest/include/gtest/gtest.h" diff --git a/chrome/browser/sync/glue/theme_change_processor.cc b/chrome/browser/sync/glue/theme_change_processor.cc index 387804d..bd9eb83 100644 --- a/chrome/browser/sync/glue/theme_change_processor.cc +++ b/chrome/browser/sync/glue/theme_change_processor.cc @@ -8,18 +8,18 @@ #include "base/logging.h" #include "chrome/browser/profiles/profile.h" #include "chrome/browser/sync/glue/theme_util.h" -#include "chrome/browser/sync/internal_api/includes/unrecoverable_error_handler.h" #include "chrome/browser/sync/internal_api/change_record.h" +#include "chrome/browser/sync/internal_api/includes/unrecoverable_error_handler.h" #include "chrome/browser/sync/internal_api/read_node.h" #include "chrome/browser/sync/internal_api/write_node.h" #include "chrome/browser/sync/internal_api/write_transaction.h" -#include "chrome/browser/sync/protocol/theme_specifics.pb.h" -#include "chrome/browser/themes/theme_service_factory.h" #include "chrome/browser/themes/theme_service.h" +#include "chrome/browser/themes/theme_service_factory.h" #include "chrome/common/chrome_notification_types.h" #include "chrome/common/extensions/extension.h" #include "content/public/browser/notification_details.h" #include "content/public/browser/notification_source.h" +#include "sync/protocol/theme_specifics.pb.h" namespace browser_sync { diff --git a/chrome/browser/sync/glue/theme_model_associator.cc b/chrome/browser/sync/glue/theme_model_associator.cc index 0b378cf..069baef 100644 --- a/chrome/browser/sync/glue/theme_model_associator.cc +++ b/chrome/browser/sync/glue/theme_model_associator.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -16,7 +16,7 @@ #include "chrome/browser/sync/internal_api/write_node.h" #include "chrome/browser/sync/internal_api/write_transaction.h" #include "chrome/browser/sync/profile_sync_service.h" -#include "chrome/browser/sync/protocol/theme_specifics.pb.h" +#include "sync/protocol/theme_specifics.pb.h" namespace browser_sync { diff --git a/chrome/browser/sync/glue/theme_util.cc b/chrome/browser/sync/glue/theme_util.cc index 21e7067..03a1ca1 100644 --- a/chrome/browser/sync/glue/theme_util.cc +++ b/chrome/browser/sync/glue/theme_util.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -11,12 +11,12 @@ #include "chrome/browser/extensions/extension_service.h" #include "chrome/browser/extensions/extension_updater.h" #include "chrome/browser/profiles/profile.h" -#include "chrome/browser/sync/protocol/theme_specifics.pb.h" #include "chrome/browser/themes/theme_service.h" #include "chrome/browser/themes/theme_service_factory.h" #include "chrome/common/extensions/extension.h" #include "chrome/common/extensions/extension_constants.h" #include "googleurl/src/gurl.h" +#include "sync/protocol/theme_specifics.pb.h" namespace browser_sync { diff --git a/chrome/browser/sync/glue/theme_util_unittest.cc b/chrome/browser/sync/glue/theme_util_unittest.cc index e1a8222..467dbad 100644 --- a/chrome/browser/sync/glue/theme_util_unittest.cc +++ b/chrome/browser/sync/glue/theme_util_unittest.cc @@ -7,12 +7,12 @@ #include "base/file_path.h" #include "base/values.h" #include "chrome/browser/profiles/profile.h" -#include "chrome/browser/sync/protocol/theme_specifics.pb.h" #include "chrome/browser/themes/theme_service.h" #include "chrome/browser/themes/theme_service_factory.h" #include "chrome/common/extensions/extension.h" #include "chrome/common/extensions/extension_constants.h" #include "chrome/test/base/testing_profile.h" +#include "sync/protocol/theme_specifics.pb.h" #include "testing/gmock/include/gmock/gmock.h" #include "testing/gtest/include/gtest/gtest.h" diff --git a/chrome/browser/sync/glue/typed_url_change_processor.cc b/chrome/browser/sync/glue/typed_url_change_processor.cc index 999d4ec..74fc78c 100644 --- a/chrome/browser/sync/glue/typed_url_change_processor.cc +++ b/chrome/browser/sync/glue/typed_url_change_processor.cc @@ -16,9 +16,9 @@ #include "chrome/browser/sync/internal_api/write_node.h" #include "chrome/browser/sync/internal_api/write_transaction.h" #include "chrome/browser/sync/profile_sync_service.h" -#include "chrome/browser/sync/protocol/typed_url_specifics.pb.h" #include "chrome/common/chrome_notification_types.h" #include "content/public/browser/notification_service.h" +#include "sync/protocol/typed_url_specifics.pb.h" using content::BrowserThread; diff --git a/chrome/browser/sync/glue/typed_url_model_associator.cc b/chrome/browser/sync/glue/typed_url_model_associator.cc index 7f84905..7ce4cc0 100644 --- a/chrome/browser/sync/glue/typed_url_model_associator.cc +++ b/chrome/browser/sync/glue/typed_url_model_associator.cc @@ -17,7 +17,7 @@ #include "chrome/browser/sync/internal_api/write_node.h" #include "chrome/browser/sync/internal_api/write_transaction.h" #include "chrome/browser/sync/profile_sync_service.h" -#include "chrome/browser/sync/protocol/typed_url_specifics.pb.h" +#include "sync/protocol/typed_url_specifics.pb.h" using content::BrowserThread; diff --git a/chrome/browser/sync/glue/typed_url_model_associator.h b/chrome/browser/sync/glue/typed_url_model_associator.h index f273015..07dbd54 100644 --- a/chrome/browser/sync/glue/typed_url_model_associator.h +++ b/chrome/browser/sync/glue/typed_url_model_associator.h @@ -16,7 +16,7 @@ #include "base/string16.h" #include "chrome/browser/history/history_types.h" #include "chrome/browser/sync/glue/model_associator.h" -#include "chrome/browser/sync/protocol/typed_url_specifics.pb.h" +#include "sync/protocol/typed_url_specifics.pb.h" class GURL; class MessageLoop; diff --git a/chrome/browser/sync/glue/typed_url_model_associator_unittest.cc b/chrome/browser/sync/glue/typed_url_model_associator_unittest.cc index 966244d..c6556a4 100644 --- a/chrome/browser/sync/glue/typed_url_model_associator_unittest.cc +++ b/chrome/browser/sync/glue/typed_url_model_associator_unittest.cc @@ -12,9 +12,9 @@ #include "chrome/browser/history/history_types.h" #include "chrome/browser/sync/glue/typed_url_model_associator.h" #include "chrome/browser/sync/profile_sync_service_mock.h" -#include "chrome/browser/sync/protocol/typed_url_specifics.pb.h" #include "content/test/test_browser_thread.h" #include "googleurl/src/gurl.h" +#include "sync/protocol/typed_url_specifics.pb.h" #include "testing/gtest/include/gtest/gtest.h" using browser_sync::TypedUrlModelAssociator; diff --git a/chrome/browser/sync/internal_api/base_node.cc b/chrome/browser/sync/internal_api/base_node.cc index 9098105..7ce674a 100644 --- a/chrome/browser/sync/internal_api/base_node.cc +++ b/chrome/browser/sync/internal_api/base_node.cc @@ -11,18 +11,18 @@ #include "base/values.h" #include "chrome/browser/sync/engine/syncapi_internal.h" #include "chrome/browser/sync/internal_api/base_transaction.h" -#include "chrome/browser/sync/protocol/app_specifics.pb.h" -#include "chrome/browser/sync/protocol/autofill_specifics.pb.h" -#include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" -#include "chrome/browser/sync/protocol/extension_specifics.pb.h" -#include "chrome/browser/sync/protocol/nigori_specifics.pb.h" -#include "chrome/browser/sync/protocol/password_specifics.pb.h" -#include "chrome/browser/sync/protocol/session_specifics.pb.h" -#include "chrome/browser/sync/protocol/theme_specifics.pb.h" -#include "chrome/browser/sync/protocol/typed_url_specifics.pb.h" #include "chrome/browser/sync/syncable/syncable.h" #include "chrome/browser/sync/syncable/syncable_id.h" #include "chrome/browser/sync/util/time.h" +#include "sync/protocol/app_specifics.pb.h" +#include "sync/protocol/autofill_specifics.pb.h" +#include "sync/protocol/bookmark_specifics.pb.h" +#include "sync/protocol/extension_specifics.pb.h" +#include "sync/protocol/nigori_specifics.pb.h" +#include "sync/protocol/password_specifics.pb.h" +#include "sync/protocol/session_specifics.pb.h" +#include "sync/protocol/theme_specifics.pb.h" +#include "sync/protocol/typed_url_specifics.pb.h" using syncable::SPECIFICS; using sync_pb::AutofillProfileSpecifics; diff --git a/chrome/browser/sync/internal_api/base_node.h b/chrome/browser/sync/internal_api/base_node.h index 5890955..4159fde 100644 --- a/chrome/browser/sync/internal_api/base_node.h +++ b/chrome/browser/sync/internal_api/base_node.h @@ -12,9 +12,9 @@ #include "base/basictypes.h" #include "base/gtest_prod_util.h" #include "base/memory/scoped_ptr.h" -#include "chrome/browser/sync/protocol/sync.pb.h" #include "chrome/browser/sync/syncable/model_type.h" #include "googleurl/src/gurl.h" +#include "sync/protocol/sync.pb.h" // Forward declarations of internal class types so that sync API objects // may have opaque pointers to these types. diff --git a/chrome/browser/sync/internal_api/change_record.h b/chrome/browser/sync/internal_api/change_record.h index 6a94564..45dc7db 100644 --- a/chrome/browser/sync/internal_api/change_record.h +++ b/chrome/browser/sync/internal_api/change_record.h @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -9,9 +9,9 @@ #include "base/basictypes.h" #include "base/memory/linked_ptr.h" -#include "chrome/browser/sync/protocol/password_specifics.pb.h" -#include "chrome/browser/sync/protocol/sync.pb.h" #include "chrome/browser/sync/util/immutable.h" +#include "sync/protocol/password_specifics.pb.h" +#include "sync/protocol/sync.pb.h" namespace base { class DictionaryValue; diff --git a/chrome/browser/sync/internal_api/change_record_unittest.cc b/chrome/browser/sync/internal_api/change_record_unittest.cc index edb2ae1..00105147 100644 --- a/chrome/browser/sync/internal_api/change_record_unittest.cc +++ b/chrome/browser/sync/internal_api/change_record_unittest.cc @@ -8,9 +8,9 @@ #include "base/string_number_conversions.h" #include "base/test/values_test_util.h" #include "base/values.h" -#include "chrome/browser/sync/protocol/extension_specifics.pb.h" #include "chrome/browser/sync/protocol/proto_value_conversions.h" -#include "chrome/browser/sync/protocol/sync.pb.h" +#include "sync/protocol/extension_specifics.pb.h" +#include "sync/protocol/sync.pb.h" #include "testing/gmock/include/gmock/gmock.h" #include "testing/gtest/include/gtest/gtest.h" diff --git a/chrome/browser/sync/internal_api/change_reorder_buffer.h b/chrome/browser/sync/internal_api/change_reorder_buffer.h index 5bbdccf..f474dd5 100644 --- a/chrome/browser/sync/internal_api/change_reorder_buffer.h +++ b/chrome/browser/sync/internal_api/change_reorder_buffer.h @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // @@ -17,7 +17,7 @@ #include "base/memory/linked_ptr.h" #include "chrome/browser/sync/internal_api/base_transaction.h" #include "chrome/browser/sync/internal_api/change_record.h" -#include "chrome/browser/sync/protocol/sync.pb.h" +#include "sync/protocol/sync.pb.h" namespace sync_api { diff --git a/chrome/browser/sync/internal_api/debug_info_event_listener.h b/chrome/browser/sync/internal_api/debug_info_event_listener.h index f6c90ae..c1f0ce7 100644 --- a/chrome/browser/sync/internal_api/debug_info_event_listener.h +++ b/chrome/browser/sync/internal_api/debug_info_event_listener.h @@ -11,10 +11,10 @@ #include "base/compiler_specific.h" #include "chrome/browser/sync/internal_api/sync_manager.h" #include "chrome/browser/sync/js/js_backend.h" -#include "chrome/browser/sync/protocol/sync.pb.h" #include "chrome/browser/sync/sessions/debug_info_getter.h" #include "chrome/browser/sync/sessions/session_state.h" #include "chrome/browser/sync/util/weak_handle.h" +#include "sync/protocol/sync.pb.h" namespace sync_api { diff --git a/chrome/browser/sync/internal_api/read_node_mock.cc b/chrome/browser/sync/internal_api/read_node_mock.cc index 64007b5..bbe23ea 100644 --- a/chrome/browser/sync/internal_api/read_node_mock.cc +++ b/chrome/browser/sync/internal_api/read_node_mock.cc @@ -1,10 +1,10 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/sync/internal_api/read_node_mock.h" -#include "chrome/browser/sync/protocol/autofill_specifics.pb.h" +#include "sync/protocol/autofill_specifics.pb.h" ReadNodeMock::ReadNodeMock() {} diff --git a/chrome/browser/sync/internal_api/sync_manager.cc b/chrome/browser/sync/internal_api/sync_manager.cc index 73eeaee..03772b4 100644 --- a/chrome/browser/sync/internal_api/sync_manager.cc +++ b/chrome/browser/sync/internal_api/sync_manager.cc @@ -20,9 +20,9 @@ #include "chrome/browser/sync/engine/net/server_connection_manager.h" #include "chrome/browser/sync/engine/nigori_util.h" #include "chrome/browser/sync/engine/polling_constants.h" +#include "chrome/browser/sync/engine/sync_scheduler.h" #include "chrome/browser/sync/engine/syncapi_internal.h" #include "chrome/browser/sync/engine/syncer_types.h" -#include "chrome/browser/sync/engine/sync_scheduler.h" #include "chrome/browser/sync/internal_api/base_node.h" #include "chrome/browser/sync/internal_api/change_reorder_buffer.h" #include "chrome/browser/sync/internal_api/configure_reason.h" @@ -42,9 +42,7 @@ #include "chrome/browser/sync/js/js_sync_manager_observer.h" #include "chrome/browser/sync/notifier/sync_notifier.h" #include "chrome/browser/sync/notifier/sync_notifier_observer.h" -#include "chrome/browser/sync/protocol/encryption.pb.h" #include "chrome/browser/sync/protocol/proto_value_conversions.h" -#include "chrome/browser/sync/protocol/sync.pb.h" #include "chrome/browser/sync/syncable/directory_change_delegate.h" #include "chrome/browser/sync/syncable/model_type.h" #include "chrome/browser/sync/syncable/model_type_payload_map.h" @@ -53,6 +51,8 @@ #include "chrome/browser/sync/util/get_session_name.h" #include "chrome/browser/sync/util/time.h" #include "net/base/network_change_notifier.h" +#include "sync/protocol/encryption.pb.h" +#include "sync/protocol/sync.pb.h" using base::TimeDelta; using browser_sync::AllStatus; diff --git a/chrome/browser/sync/internal_api/syncapi_unittest.cc b/chrome/browser/sync/internal_api/syncapi_unittest.cc index 1d66b49..94214d2 100644 --- a/chrome/browser/sync/internal_api/syncapi_unittest.cc +++ b/chrome/browser/sync/internal_api/syncapi_unittest.cc @@ -43,13 +43,7 @@ #include "chrome/browser/sync/js/js_test_util.h" #include "chrome/browser/sync/notifier/sync_notifier.h" #include "chrome/browser/sync/notifier/sync_notifier_observer.h" -#include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" -#include "chrome/browser/sync/protocol/encryption.pb.h" -#include "chrome/browser/sync/protocol/extension_specifics.pb.h" -#include "chrome/browser/sync/protocol/password_specifics.pb.h" -#include "chrome/browser/sync/protocol/preference_specifics.pb.h" #include "chrome/browser/sync/protocol/proto_value_conversions.h" -#include "chrome/browser/sync/protocol/sync.pb.h" #include "chrome/browser/sync/sessions/sync_session.h" #include "chrome/browser/sync/syncable/model_type_test_util.h" #include "chrome/browser/sync/syncable/syncable.h" @@ -60,6 +54,12 @@ #include "chrome/browser/sync/util/cryptographer.h" #include "chrome/browser/sync/util/extensions_activity_monitor.h" #include "chrome/browser/sync/util/time.h" +#include "sync/protocol/bookmark_specifics.pb.h" +#include "sync/protocol/encryption.pb.h" +#include "sync/protocol/extension_specifics.pb.h" +#include "sync/protocol/password_specifics.pb.h" +#include "sync/protocol/preference_specifics.pb.h" +#include "sync/protocol/sync.pb.h" #include "testing/gmock/include/gmock/gmock.h" #include "testing/gtest/include/gtest/gtest.h" diff --git a/chrome/browser/sync/internal_api/write_node.cc b/chrome/browser/sync/internal_api/write_node.cc index d64639d..8bfcc86 100644 --- a/chrome/browser/sync/internal_api/write_node.cc +++ b/chrome/browser/sync/internal_api/write_node.cc @@ -11,16 +11,16 @@ #include "chrome/browser/sync/engine/syncapi_internal.h" #include "chrome/browser/sync/internal_api/base_transaction.h" #include "chrome/browser/sync/internal_api/write_transaction.h" -#include "chrome/browser/sync/protocol/app_specifics.pb.h" -#include "chrome/browser/sync/protocol/autofill_specifics.pb.h" -#include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" -#include "chrome/browser/sync/protocol/extension_specifics.pb.h" -#include "chrome/browser/sync/protocol/password_specifics.pb.h" -#include "chrome/browser/sync/protocol/session_specifics.pb.h" -#include "chrome/browser/sync/protocol/theme_specifics.pb.h" -#include "chrome/browser/sync/protocol/typed_url_specifics.pb.h" #include "chrome/browser/sync/syncable/syncable.h" #include "chrome/browser/sync/util/cryptographer.h" +#include "sync/protocol/app_specifics.pb.h" +#include "sync/protocol/autofill_specifics.pb.h" +#include "sync/protocol/bookmark_specifics.pb.h" +#include "sync/protocol/extension_specifics.pb.h" +#include "sync/protocol/password_specifics.pb.h" +#include "sync/protocol/session_specifics.pb.h" +#include "sync/protocol/theme_specifics.pb.h" +#include "sync/protocol/typed_url_specifics.pb.h" using browser_sync::Cryptographer; using std::string; diff --git a/chrome/browser/sync/profile_sync_service_autofill_unittest.cc b/chrome/browser/sync/profile_sync_service_autofill_unittest.cc index c8827a3..5b3cd5f 100644 --- a/chrome/browser/sync/profile_sync_service_autofill_unittest.cc +++ b/chrome/browser/sync/profile_sync_service_autofill_unittest.cc @@ -40,7 +40,6 @@ #include "chrome/browser/sync/profile_sync_components_factory.h" #include "chrome/browser/sync/profile_sync_service.h" #include "chrome/browser/sync/profile_sync_test_util.h" -#include "chrome/browser/sync/protocol/autofill_specifics.pb.h" #include "chrome/browser/sync/syncable/model_type.h" #include "chrome/browser/sync/syncable/syncable.h" #include "chrome/browser/sync/test/engine/test_id_factory.h" @@ -55,6 +54,7 @@ #include "chrome/common/net/gaia/gaia_constants.h" #include "content/public/browser/notification_source.h" #include "content/test/test_browser_thread.h" +#include "sync/protocol/autofill_specifics.pb.h" #include "testing/gmock/include/gmock/gmock.h" using base::Time; diff --git a/chrome/browser/sync/profile_sync_service_password_unittest.cc b/chrome/browser/sync/profile_sync_service_password_unittest.cc index b6733ad..be460db 100644 --- a/chrome/browser/sync/profile_sync_service_password_unittest.cc +++ b/chrome/browser/sync/profile_sync_service_password_unittest.cc @@ -29,7 +29,6 @@ #include "chrome/browser/sync/profile_sync_components_factory_mock.h" #include "chrome/browser/sync/profile_sync_service.h" #include "chrome/browser/sync/profile_sync_test_util.h" -#include "chrome/browser/sync/protocol/password_specifics.pb.h" #include "chrome/browser/sync/syncable/syncable.h" #include "chrome/browser/sync/test/engine/test_id_factory.h" #include "chrome/browser/sync/test_profile_sync_service.h" @@ -40,6 +39,7 @@ #include "content/public/browser/notification_source.h" #include "content/test/notification_observer_mock.h" #include "content/test/test_browser_thread.h" +#include "sync/protocol/password_specifics.pb.h" #include "testing/gmock/include/gmock/gmock.h" #include "webkit/forms/password_form.h" diff --git a/chrome/browser/sync/profile_sync_service_preference_unittest.cc b/chrome/browser/sync/profile_sync_service_preference_unittest.cc index 3fb4f86..52cc152 100644 --- a/chrome/browser/sync/profile_sync_service_preference_unittest.cc +++ b/chrome/browser/sync/profile_sync_service_preference_unittest.cc @@ -21,21 +21,21 @@ #include "chrome/browser/sync/abstract_profile_sync_service_test.h" #include "chrome/browser/sync/api/sync_data.h" #include "chrome/browser/sync/glue/generic_change_processor.h" -#include "chrome/browser/sync/glue/ui_data_type_controller.h" #include "chrome/browser/sync/glue/sync_backend_host.h" +#include "chrome/browser/sync/glue/ui_data_type_controller.h" #include "chrome/browser/sync/internal_api/change_record.h" #include "chrome/browser/sync/internal_api/read_node.h" #include "chrome/browser/sync/internal_api/read_transaction.h" #include "chrome/browser/sync/internal_api/write_node.h" #include "chrome/browser/sync/internal_api/write_transaction.h" #include "chrome/browser/sync/profile_sync_test_util.h" -#include "chrome/browser/sync/protocol/preference_specifics.pb.h" #include "chrome/browser/sync/syncable/model_type.h" #include "chrome/browser/sync/test_profile_sync_service.h" #include "chrome/common/net/gaia/gaia_constants.h" #include "chrome/common/pref_names.h" #include "chrome/test/base/testing_pref_service.h" #include "chrome/test/base/testing_profile.h" +#include "sync/protocol/preference_specifics.pb.h" #include "testing/gmock/include/gmock/gmock.h" #include "testing/gtest/include/gtest/gtest.h" diff --git a/chrome/browser/sync/profile_sync_service_session_unittest.cc b/chrome/browser/sync/profile_sync_service_session_unittest.cc index 1268c92..0ca2da8 100644 --- a/chrome/browser/sync/profile_sync_service_session_unittest.cc +++ b/chrome/browser/sync/profile_sync_service_session_unittest.cc @@ -15,8 +15,8 @@ #include "base/scoped_temp_dir.h" #include "base/stl_util.h" #include "base/time.h" -#include "chrome/browser/signin/signin_manager_factory.h" #include "chrome/browser/signin/signin_manager.h" +#include "chrome/browser/signin/signin_manager_factory.h" #include "chrome/browser/signin/token_service_factory.h" #include "chrome/browser/sync/abstract_profile_sync_service_test.h" #include "chrome/browser/sync/glue/session_change_processor.h" @@ -31,8 +31,6 @@ #include "chrome/browser/sync/profile_sync_components_factory_mock.h" #include "chrome/browser/sync/profile_sync_service_factory.h" #include "chrome/browser/sync/profile_sync_test_util.h" -#include "chrome/browser/sync/protocol/session_specifics.pb.h" -#include "chrome/browser/sync/protocol/sync.pb.h" #include "chrome/browser/sync/syncable/model_type.h" #include "chrome/browser/sync/syncable/syncable.h" #include "chrome/browser/sync/test/engine/test_id_factory.h" @@ -48,6 +46,8 @@ #include "content/public/browser/notification_service.h" #include "content/test/test_browser_thread.h" #include "googleurl/src/gurl.h" +#include "sync/protocol/session_specifics.pb.h" +#include "sync/protocol/sync.pb.h" #include "testing/gmock/include/gmock/gmock.h" #include "testing/gtest/include/gtest/gtest.h" #include "ui/base/ui_base_types.h" diff --git a/chrome/browser/sync/profile_sync_service_typed_url_unittest.cc b/chrome/browser/sync/profile_sync_service_typed_url_unittest.cc index 056bff3..b898074 100644 --- a/chrome/browser/sync/profile_sync_service_typed_url_unittest.cc +++ b/chrome/browser/sync/profile_sync_service_typed_url_unittest.cc @@ -34,7 +34,6 @@ #include "chrome/browser/sync/profile_sync_components_factory_mock.h" #include "chrome/browser/sync/profile_sync_service.h" #include "chrome/browser/sync/profile_sync_test_util.h" -#include "chrome/browser/sync/protocol/typed_url_specifics.pb.h" #include "chrome/browser/sync/syncable/syncable.h" #include "chrome/browser/sync/test/engine/test_id_factory.h" #include "chrome/browser/sync/test_profile_sync_service.h" @@ -44,6 +43,7 @@ #include "chrome/test/base/testing_profile.h" #include "content/public/browser/notification_service.h" #include "googleurl/src/gurl.h" +#include "sync/protocol/typed_url_specifics.pb.h" #include "testing/gmock/include/gmock/gmock.h" using base::Time; diff --git a/chrome/browser/sync/protocol/proto_enum_conversions.h b/chrome/browser/sync/protocol/proto_enum_conversions.h index 7722f92..76a912e 100644 --- a/chrome/browser/sync/protocol/proto_enum_conversions.h +++ b/chrome/browser/sync/protocol/proto_enum_conversions.h @@ -8,8 +8,8 @@ // Keep this file in sync with the .proto files in this directory. -#include "chrome/browser/sync/protocol/session_specifics.pb.h" -#include "chrome/browser/sync/protocol/sync.pb.h" +#include "sync/protocol/session_specifics.pb.h" +#include "sync/protocol/sync.pb.h" // Utility functions to get the string equivalent for some sync proto // enums. diff --git a/chrome/browser/sync/protocol/proto_value_conversions.cc b/chrome/browser/sync/protocol/proto_value_conversions.cc index 86b632e..ce8e749 100644 --- a/chrome/browser/sync/protocol/proto_value_conversions.cc +++ b/chrome/browser/sync/protocol/proto_value_conversions.cc @@ -11,23 +11,23 @@ #include "base/logging.h" #include "base/string_number_conversions.h" #include "base/values.h" -#include "chrome/browser/sync/protocol/app_notification_specifics.pb.h" -#include "chrome/browser/sync/protocol/app_setting_specifics.pb.h" -#include "chrome/browser/sync/protocol/app_specifics.pb.h" -#include "chrome/browser/sync/protocol/autofill_specifics.pb.h" -#include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" -#include "chrome/browser/sync/protocol/encryption.pb.h" -#include "chrome/browser/sync/protocol/extension_setting_specifics.pb.h" -#include "chrome/browser/sync/protocol/extension_specifics.pb.h" -#include "chrome/browser/sync/protocol/nigori_specifics.pb.h" -#include "chrome/browser/sync/protocol/password_specifics.pb.h" -#include "chrome/browser/sync/protocol/preference_specifics.pb.h" #include "chrome/browser/sync/protocol/proto_enum_conversions.h" -#include "chrome/browser/sync/protocol/search_engine_specifics.pb.h" -#include "chrome/browser/sync/protocol/session_specifics.pb.h" -#include "chrome/browser/sync/protocol/sync.pb.h" -#include "chrome/browser/sync/protocol/theme_specifics.pb.h" -#include "chrome/browser/sync/protocol/typed_url_specifics.pb.h" +#include "sync/protocol/app_notification_specifics.pb.h" +#include "sync/protocol/app_setting_specifics.pb.h" +#include "sync/protocol/app_specifics.pb.h" +#include "sync/protocol/autofill_specifics.pb.h" +#include "sync/protocol/bookmark_specifics.pb.h" +#include "sync/protocol/encryption.pb.h" +#include "sync/protocol/extension_setting_specifics.pb.h" +#include "sync/protocol/extension_specifics.pb.h" +#include "sync/protocol/nigori_specifics.pb.h" +#include "sync/protocol/password_specifics.pb.h" +#include "sync/protocol/preference_specifics.pb.h" +#include "sync/protocol/search_engine_specifics.pb.h" +#include "sync/protocol/session_specifics.pb.h" +#include "sync/protocol/sync.pb.h" +#include "sync/protocol/theme_specifics.pb.h" +#include "sync/protocol/typed_url_specifics.pb.h" namespace browser_sync { diff --git a/chrome/browser/sync/protocol/proto_value_conversions_unittest.cc b/chrome/browser/sync/protocol/proto_value_conversions_unittest.cc index 699ead8..005c267 100644 --- a/chrome/browser/sync/protocol/proto_value_conversions_unittest.cc +++ b/chrome/browser/sync/protocol/proto_value_conversions_unittest.cc @@ -8,23 +8,23 @@ #include "base/memory/scoped_ptr.h" #include "base/values.h" -#include "chrome/browser/sync/protocol/app_notification_specifics.pb.h" -#include "chrome/browser/sync/protocol/app_setting_specifics.pb.h" -#include "chrome/browser/sync/protocol/app_specifics.pb.h" -#include "chrome/browser/sync/protocol/autofill_specifics.pb.h" -#include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" -#include "chrome/browser/sync/protocol/encryption.pb.h" -#include "chrome/browser/sync/protocol/extension_setting_specifics.pb.h" -#include "chrome/browser/sync/protocol/extension_specifics.pb.h" -#include "chrome/browser/sync/protocol/nigori_specifics.pb.h" -#include "chrome/browser/sync/protocol/password_specifics.pb.h" -#include "chrome/browser/sync/protocol/preference_specifics.pb.h" -#include "chrome/browser/sync/protocol/search_engine_specifics.pb.h" -#include "chrome/browser/sync/protocol/session_specifics.pb.h" -#include "chrome/browser/sync/protocol/sync.pb.h" -#include "chrome/browser/sync/protocol/theme_specifics.pb.h" -#include "chrome/browser/sync/protocol/typed_url_specifics.pb.h" #include "chrome/browser/sync/syncable/model_type.h" +#include "sync/protocol/app_notification_specifics.pb.h" +#include "sync/protocol/app_setting_specifics.pb.h" +#include "sync/protocol/app_specifics.pb.h" +#include "sync/protocol/autofill_specifics.pb.h" +#include "sync/protocol/bookmark_specifics.pb.h" +#include "sync/protocol/encryption.pb.h" +#include "sync/protocol/extension_setting_specifics.pb.h" +#include "sync/protocol/extension_specifics.pb.h" +#include "sync/protocol/nigori_specifics.pb.h" +#include "sync/protocol/password_specifics.pb.h" +#include "sync/protocol/preference_specifics.pb.h" +#include "sync/protocol/search_engine_specifics.pb.h" +#include "sync/protocol/session_specifics.pb.h" +#include "sync/protocol/sync.pb.h" +#include "sync/protocol/theme_specifics.pb.h" +#include "sync/protocol/typed_url_specifics.pb.h" #include "testing/gtest/include/gtest/gtest.h" namespace browser_sync { diff --git a/chrome/browser/sync/sessions/debug_info_getter.h b/chrome/browser/sync/sessions/debug_info_getter.h index fc00209..f7fe7e7 100644 --- a/chrome/browser/sync/sessions/debug_info_getter.h +++ b/chrome/browser/sync/sessions/debug_info_getter.h @@ -1,11 +1,11 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_SYNC_SESSIONS_DEBUG_INFO_GETTER_H_ #define CHROME_BROWSER_SYNC_SESSIONS_DEBUG_INFO_GETTER_H_ -#include "chrome/browser/sync/protocol/sync.pb.h" +#include "sync/protocol/sync.pb.h" namespace browser_sync { namespace sessions { diff --git a/chrome/browser/sync/syncable/directory_backing_store.cc b/chrome/browser/sync/syncable/directory_backing_store.cc index 89b62c3..c409be4 100644 --- a/chrome/browser/sync/syncable/directory_backing_store.cc +++ b/chrome/browser/sync/syncable/directory_backing_store.cc @@ -18,15 +18,15 @@ #include "base/string_number_conversions.h" #include "base/stringprintf.h" #include "base/time.h" -#include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" #include "chrome/browser/sync/protocol/service_constants.h" -#include "chrome/browser/sync/protocol/sync.pb.h" #include "chrome/browser/sync/syncable/syncable-inl.h" #include "chrome/browser/sync/syncable/syncable_columns.h" #include "chrome/browser/sync/util/time.h" #include "sql/connection.h" #include "sql/statement.h" #include "sql/transaction.h" +#include "sync/protocol/bookmark_specifics.pb.h" +#include "sync/protocol/sync.pb.h" using std::string; diff --git a/chrome/browser/sync/syncable/directory_backing_store_unittest.cc b/chrome/browser/sync/syncable/directory_backing_store_unittest.cc index 14ae8c2..0863ce0 100644 --- a/chrome/browser/sync/syncable/directory_backing_store_unittest.cc +++ b/chrome/browser/sync/syncable/directory_backing_store_unittest.cc @@ -12,16 +12,16 @@ #include "base/scoped_temp_dir.h" #include "base/stl_util.h" #include "base/string_number_conversions.h" -#include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" -#include "chrome/browser/sync/protocol/sync.pb.h" #include "chrome/browser/sync/syncable/directory_backing_store.h" #include "chrome/browser/sync/syncable/on_disk_directory_backing_store.h" -#include "chrome/browser/sync/syncable/syncable.h" #include "chrome/browser/sync/syncable/syncable-inl.h" +#include "chrome/browser/sync/syncable/syncable.h" #include "chrome/browser/sync/test/test_directory_backing_store.h" #include "chrome/browser/sync/util/time.h" #include "sql/connection.h" #include "sql/statement.h" +#include "sync/protocol/bookmark_specifics.pb.h" +#include "sync/protocol/sync.pb.h" #include "testing/gtest/include/gtest/gtest-param-test.h" namespace syncable { diff --git a/chrome/browser/sync/syncable/model_type.cc b/chrome/browser/sync/syncable/model_type.cc index 311ac73..58385d3 100644 --- a/chrome/browser/sync/syncable/model_type.cc +++ b/chrome/browser/sync/syncable/model_type.cc @@ -7,21 +7,21 @@ #include "base/string_split.h" #include "base/values.h" #include "chrome/browser/sync/engine/syncproto.h" -#include "chrome/browser/sync/protocol/app_notification_specifics.pb.h" -#include "chrome/browser/sync/protocol/app_setting_specifics.pb.h" -#include "chrome/browser/sync/protocol/app_specifics.pb.h" -#include "chrome/browser/sync/protocol/autofill_specifics.pb.h" -#include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" -#include "chrome/browser/sync/protocol/extension_setting_specifics.pb.h" -#include "chrome/browser/sync/protocol/extension_specifics.pb.h" -#include "chrome/browser/sync/protocol/nigori_specifics.pb.h" -#include "chrome/browser/sync/protocol/password_specifics.pb.h" -#include "chrome/browser/sync/protocol/preference_specifics.pb.h" -#include "chrome/browser/sync/protocol/search_engine_specifics.pb.h" -#include "chrome/browser/sync/protocol/session_specifics.pb.h" -#include "chrome/browser/sync/protocol/sync.pb.h" -#include "chrome/browser/sync/protocol/theme_specifics.pb.h" -#include "chrome/browser/sync/protocol/typed_url_specifics.pb.h" +#include "sync/protocol/app_notification_specifics.pb.h" +#include "sync/protocol/app_setting_specifics.pb.h" +#include "sync/protocol/app_specifics.pb.h" +#include "sync/protocol/autofill_specifics.pb.h" +#include "sync/protocol/bookmark_specifics.pb.h" +#include "sync/protocol/extension_setting_specifics.pb.h" +#include "sync/protocol/extension_specifics.pb.h" +#include "sync/protocol/nigori_specifics.pb.h" +#include "sync/protocol/password_specifics.pb.h" +#include "sync/protocol/preference_specifics.pb.h" +#include "sync/protocol/search_engine_specifics.pb.h" +#include "sync/protocol/session_specifics.pb.h" +#include "sync/protocol/sync.pb.h" +#include "sync/protocol/theme_specifics.pb.h" +#include "sync/protocol/typed_url_specifics.pb.h" namespace syncable { diff --git a/chrome/browser/sync/syncable/syncable.h b/chrome/browser/sync/syncable/syncable.h index 96fb1bc..344e7e0 100644 --- a/chrome/browser/sync/syncable/syncable.h +++ b/chrome/browser/sync/syncable/syncable.h @@ -28,15 +28,15 @@ #include "base/time.h" #include "chrome/browser/sync/internal_api/includes/report_unrecoverable_error_function.h" #include "chrome/browser/sync/internal_api/includes/unrecoverable_error_handler.h" -#include "chrome/browser/sync/protocol/sync.pb.h" #include "chrome/browser/sync/syncable/blob.h" #include "chrome/browser/sync/syncable/dir_open_result.h" -#include "chrome/browser/sync/syncable/syncable_id.h" #include "chrome/browser/sync/syncable/model_type.h" +#include "chrome/browser/sync/syncable/syncable_id.h" #include "chrome/browser/sync/util/cryptographer.h" #include "chrome/browser/sync/util/immutable.h" #include "chrome/browser/sync/util/time.h" #include "chrome/browser/sync/util/weak_handle.h" +#include "sync/protocol/sync.pb.h" namespace base { class DictionaryValue; diff --git a/chrome/browser/sync/syncable/syncable_unittest.cc b/chrome/browser/sync/syncable/syncable_unittest.cc index 2ba255d..282fa7f 100644 --- a/chrome/browser/sync/syncable/syncable_unittest.cc +++ b/chrome/browser/sync/syncable/syncable_unittest.cc @@ -21,7 +21,6 @@ #include "base/values.h" #include "chrome/browser/sync/engine/syncproto.h" #include "chrome/browser/sync/internal_api/includes/test_unrecoverable_error_handler.h" -#include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" #include "chrome/browser/sync/syncable/directory_backing_store.h" #include "chrome/browser/sync/syncable/directory_change_delegate.h" #include "chrome/browser/sync/syncable/on_disk_directory_backing_store.h" @@ -30,6 +29,7 @@ #include "chrome/browser/sync/test/fake_encryptor.h" #include "chrome/browser/sync/test/null_directory_change_delegate.h" #include "chrome/browser/sync/test/null_transaction_observer.h" +#include "sync/protocol/bookmark_specifics.pb.h" #include "testing/gtest/include/gtest/gtest.h" #include "third_party/sqlite/sqlite3.h" diff --git a/chrome/browser/sync/test/engine/mock_connection_manager.cc b/chrome/browser/sync/test/engine/mock_connection_manager.cc index 0b2e2e4..5af64aa 100644 --- a/chrome/browser/sync/test/engine/mock_connection_manager.cc +++ b/chrome/browser/sync/test/engine/mock_connection_manager.cc @@ -11,8 +11,8 @@ #include "base/location.h" #include "base/stringprintf.h" #include "chrome/browser/sync/engine/syncer_proto_util.h" -#include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" #include "chrome/browser/sync/test/engine/test_id_factory.h" +#include "sync/protocol/bookmark_specifics.pb.h" #include "testing/gtest/include/gtest/gtest.h" using browser_sync::HttpResponse; diff --git a/chrome/browser/sync/test/engine/mock_connection_manager.h b/chrome/browser/sync/test/engine/mock_connection_manager.h index 4750b78..a9a1662 100644 --- a/chrome/browser/sync/test/engine/mock_connection_manager.h +++ b/chrome/browser/sync/test/engine/mock_connection_manager.h @@ -17,9 +17,9 @@ #include "base/compiler_specific.h" #include "base/memory/scoped_vector.h" #include "chrome/browser/sync/engine/net/server_connection_manager.h" -#include "chrome/browser/sync/protocol/sync.pb.h" #include "chrome/browser/sync/syncable/model_type.h" #include "chrome/browser/sync/syncable/model_type_payload_map.h" +#include "sync/protocol/sync.pb.h" class MockConnectionManager : public browser_sync::ServerConnectionManager { public: diff --git a/chrome/browser/sync/test/integration/sync_test.cc b/chrome/browser/sync/test/integration/sync_test.cc index 1499e3a..b37d171 100644 --- a/chrome/browser/sync/test/integration/sync_test.cc +++ b/chrome/browser/sync/test/integration/sync_test.cc @@ -26,7 +26,6 @@ #include "chrome/browser/sync/notifier/p2p_notifier.h" #include "chrome/browser/sync/profile_sync_service_factory.h" #include "chrome/browser/sync/profile_sync_service_harness.h" -#include "chrome/browser/sync/protocol/sync.pb.h" #include "chrome/browser/sync/test/integration/sync_datatype_helper.h" #include "chrome/browser/ui/browser.h" #include "chrome/browser/ui/browser_list.h" @@ -50,6 +49,7 @@ #include "net/url_request/url_request_context.h" #include "net/url_request/url_request_context_getter.h" #include "net/url_request/url_request_status.h" +#include "sync/protocol/sync.pb.h" using content::BrowserThread; diff --git a/chrome/browser/sync/test_profile_sync_service.cc b/chrome/browser/sync/test_profile_sync_service.cc index 3f76310..ebac7a5 100644 --- a/chrome/browser/sync/test_profile_sync_service.cc +++ b/chrome/browser/sync/test_profile_sync_service.cc @@ -11,11 +11,11 @@ #include "chrome/browser/sync/internal_api/user_share.h" #include "chrome/browser/sync/js/js_reply_handler.h" #include "chrome/browser/sync/profile_sync_components_factory.h" -#include "chrome/browser/sync/protocol/encryption.pb.h" #include "chrome/browser/sync/sessions/session_state.h" #include "chrome/browser/sync/syncable/syncable.h" #include "chrome/browser/sync/test/test_http_bridge_factory.h" #include "chrome/common/chrome_notification_types.h" +#include "sync/protocol/encryption.pb.h" using browser_sync::ModelSafeRoutingInfo; using browser_sync::sessions::ErrorCounters; diff --git a/chrome/browser/sync/util/cryptographer.h b/chrome/browser/sync/util/cryptographer.h index e4a5d1e..ede5153 100644 --- a/chrome/browser/sync/util/cryptographer.h +++ b/chrome/browser/sync/util/cryptographer.h @@ -13,10 +13,10 @@ #include "base/memory/linked_ptr.h" #include "base/memory/scoped_ptr.h" #include "base/observer_list.h" -#include "chrome/browser/sync/protocol/encryption.pb.h" -#include "chrome/browser/sync/protocol/nigori_specifics.pb.h" #include "chrome/browser/sync/syncable/model_type.h" #include "chrome/browser/sync/util/nigori.h" +#include "sync/protocol/encryption.pb.h" +#include "sync/protocol/nigori_specifics.pb.h" namespace browser_sync { diff --git a/chrome/browser/sync/util/cryptographer_unittest.cc b/chrome/browser/sync/util/cryptographer_unittest.cc index 5d6c006..99e676d 100644 --- a/chrome/browser/sync/util/cryptographer_unittest.cc +++ b/chrome/browser/sync/util/cryptographer_unittest.cc @@ -8,10 +8,10 @@ #include "base/memory/scoped_ptr.h" #include "base/string_util.h" -#include "chrome/browser/sync/protocol/nigori_specifics.pb.h" -#include "chrome/browser/sync/protocol/password_specifics.pb.h" #include "chrome/browser/sync/syncable/model_type_test_util.h" #include "chrome/browser/sync/test/fake_encryptor.h" +#include "sync/protocol/nigori_specifics.pb.h" +#include "sync/protocol/password_specifics.pb.h" #include "testing/gmock/include/gmock/gmock.h" #include "testing/gtest/include/gtest/gtest.h" diff --git a/chrome/browser/sync/util/protobuf_unittest.cc b/chrome/browser/sync/util/protobuf_unittest.cc index bb8be8b..4f654d5 100644 --- a/chrome/browser/sync/util/protobuf_unittest.cc +++ b/chrome/browser/sync/util/protobuf_unittest.cc @@ -1,11 +1,11 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <string> #include <vector> -#include "chrome/browser/sync/protocol/test.pb.h" +#include "sync/protocol/test.pb.h" #include "testing/gtest/include/gtest/gtest.h" namespace { diff --git a/chrome/browser/webdata/autocomplete_syncable_service.cc b/chrome/browser/webdata/autocomplete_syncable_service.cc index 64ee484..af1cde1 100644 --- a/chrome/browser/webdata/autocomplete_syncable_service.cc +++ b/chrome/browser/webdata/autocomplete_syncable_service.cc @@ -9,8 +9,6 @@ #include "base/utf_string_conversions.h" #include "chrome/browser/profiles/profile.h" #include "chrome/browser/sync/api/sync_error.h" -#include "chrome/browser/sync/protocol/autofill_specifics.pb.h" -#include "chrome/browser/sync/protocol/sync.pb.h" #include "chrome/browser/webdata/autofill_table.h" #include "chrome/browser/webdata/web_data_service.h" #include "chrome/browser/webdata/web_database.h" @@ -19,6 +17,8 @@ #include "content/public/browser/browser_thread.h" #include "content/public/browser/notification_service.h" #include "net/base/escape.h" +#include "sync/protocol/autofill_specifics.pb.h" +#include "sync/protocol/sync.pb.h" using content::BrowserThread; diff --git a/chrome/browser/webdata/autofill_profile_syncable_service.cc b/chrome/browser/webdata/autofill_profile_syncable_service.cc index f2da26a..f73a6618 100644 --- a/chrome/browser/webdata/autofill_profile_syncable_service.cc +++ b/chrome/browser/webdata/autofill_profile_syncable_service.cc @@ -11,7 +11,6 @@ #include "chrome/browser/autofill/form_group.h" #include "chrome/browser/profiles/profile.h" #include "chrome/browser/sync/api/sync_error.h" -#include "chrome/browser/sync/protocol/sync.pb.h" #include "chrome/browser/webdata/autofill_table.h" #include "chrome/browser/webdata/web_data_service.h" #include "chrome/browser/webdata/web_database.h" @@ -20,6 +19,7 @@ #include "content/public/browser/browser_thread.h" #include "content/public/browser/notification_details.h" #include "content/public/browser/notification_source.h" +#include "sync/protocol/sync.pb.h" using content::BrowserThread; diff --git a/chrome/browser/webdata/autofill_profile_syncable_service.h b/chrome/browser/webdata/autofill_profile_syncable_service.h index b797f06..6926572 100644 --- a/chrome/browser/webdata/autofill_profile_syncable_service.h +++ b/chrome/browser/webdata/autofill_profile_syncable_service.h @@ -18,12 +18,12 @@ #include "chrome/browser/sync/api/sync_data.h" #include "chrome/browser/sync/api/sync_error.h" #include "chrome/browser/sync/api/syncable_service.h" -#include "chrome/browser/sync/protocol/autofill_specifics.pb.h" #include "chrome/browser/webdata/autofill_change.h" #include "chrome/browser/webdata/autofill_entry.h" #include "content/public/browser/notification_observer.h" #include "content/public/browser/notification_registrar.h" #include "content/public/browser/notification_types.h" +#include "sync/protocol/autofill_specifics.pb.h" class AutofillProfile; class AutofillTable; diff --git a/chrome/chrome.gyp b/chrome/chrome.gyp index c5615bf..d860a13 100644 --- a/chrome/chrome.gyp +++ b/chrome/chrome.gyp @@ -306,12 +306,12 @@ '../base/base.gyp:base', '../net/net.gyp:net', '../third_party/sqlite/sqlite.gyp:sqlite', - 'browser/sync/protocol/sync_proto.gyp:sync_proto', + '../sync/protocol/sync_proto.gyp:sync_proto', 'sync', 'sync_notifier', ], 'export_dependent_settings': [ - 'browser/sync/protocol/sync_proto.gyp:sync_proto', + '../sync/protocol/sync_proto.gyp:sync_proto', 'sync', ], # This target exports a hard dependency because syncapi.h includes @@ -340,12 +340,12 @@ ], 'dependencies': [ '../base/base.gyp:base', - 'browser/sync/protocol/sync_proto.gyp:sync_proto', + '../sync/protocol/sync_proto.gyp:sync_proto', 'sync', ], 'export_dependent_settings': [ '../base/base.gyp:base', - 'browser/sync/protocol/sync_proto.gyp:sync_proto', + '../sync/protocol/sync_proto.gyp:sync_proto', 'sync', ], # Even though this target depends on sync_proto, it doesn't @@ -510,12 +510,12 @@ '../crypto/crypto.gyp:crypto', '../net/net.gyp:net', '../sql/sql.gyp:sql', - 'browser/sync/protocol/sync_proto.gyp:sync_proto', + '../sync/protocol/sync_proto.gyp:sync_proto', ], 'export_dependent_settings': [ '../base/base.gyp:base', '../crypto/crypto.gyp:crypto', - 'browser/sync/protocol/sync_proto.gyp:sync_proto', + '../sync/protocol/sync_proto.gyp:sync_proto', ], # This target exports a hard dependency because its header files include # protobuf header files from sync_proto. diff --git a/chrome/chrome_browser.gypi b/chrome/chrome_browser.gypi index d862084..d6607b1 100644 --- a/chrome/chrome_browser.gypi +++ b/chrome/chrome_browser.gypi @@ -12,7 +12,7 @@ 'app/policy/cloud_policy_codegen.gyp:policy', 'autofill_regexes', 'browser_extensions', - 'browser/sync/protocol/sync_proto.gyp:sync_proto', + '../sync/protocol/sync_proto.gyp:sync_proto', 'cert_logger_proto', 'chrome_resources.gyp:chrome_extra_resources', 'chrome_resources.gyp:chrome_resources', diff --git a/chrome/chrome_browser_extensions.gypi b/chrome/chrome_browser_extensions.gypi index f7ada2d..f733a80 100644 --- a/chrome/chrome_browser_extensions.gypi +++ b/chrome/chrome_browser_extensions.gypi @@ -10,6 +10,7 @@ 'variables': { 'enable_wexit_time_destructors': 1, }, 'dependencies': [ 'app/policy/cloud_policy_codegen.gyp:policy', + '../sync/protocol/sync_proto.gyp:sync_proto', 'chrome_resources.gyp:chrome_extra_resources', 'chrome_resources.gyp:chrome_resources', 'chrome_resources.gyp:chrome_strings', diff --git a/chrome/chrome_tests.gypi b/chrome/chrome_tests.gypi index 745dd0c..64c9244 100644 --- a/chrome/chrome_tests.gypi +++ b/chrome/chrome_tests.gypi @@ -38,7 +38,7 @@ 'dependencies': [ 'app/policy/cloud_policy_codegen.gyp:policy', 'browser', - 'browser/sync/protocol/sync_proto.gyp:sync_proto', + '../sync/protocol/sync_proto.gyp:sync_proto', 'chrome_resources.gyp:chrome_resources', 'chrome_resources.gyp:chrome_strings', 'chrome_resources.gyp:theme_resources', @@ -537,7 +537,7 @@ 'target_name': 'interactive_ui_tests', 'type': 'executable', 'dependencies': [ - 'browser/sync/protocol/sync_proto.gyp:sync_proto', + '../sync/protocol/sync_proto.gyp:sync_proto', 'chrome', 'chrome_resources.gyp:chrome_resources', 'chrome_resources.gyp:chrome_strings', @@ -2520,7 +2520,7 @@ ], 'dependencies': [ 'browser', - 'browser/sync/protocol/sync_proto.gyp:sync_proto', + '../sync/protocol/sync_proto.gyp:sync_proto', 'chrome', 'chrome_resources.gyp:chrome_resources', 'chrome_resources.gyp:chrome_strings', @@ -3226,7 +3226,7 @@ 'msvs_cygwin_dirs': ['<(DEPTH)/third_party/cygwin'], 'dependencies': [ 'browser', - 'browser/sync/protocol/sync_proto.gyp:sync_proto', + '../sync/protocol/sync_proto.gyp:sync_proto', 'chrome', 'chrome_resources.gyp:chrome_resources', 'chrome_resources.gyp:chrome_strings', @@ -3629,7 +3629,7 @@ 'target_name': 'sync_unit_tests', 'type': 'executable', 'sources': [ - '<(protoc_out_dir)/chrome/browser/sync/protocol/test.pb.cc', + '<(protoc_out_dir)//sync/protocol/test.pb.cc', '../base/test/run_all_unittests.cc', 'app/breakpad_mac_stubs.mm', 'browser/sync/api/sync_change_unittest.cc', @@ -3717,7 +3717,7 @@ '_USE_32BIT_TIME_T', ], 'dependencies': [ - 'browser/sync/protocol/sync_proto.gyp:sync_proto', + '../sync/protocol/sync_proto.gyp:sync_proto', '../base/base.gyp:test_support_base', '../jingle/jingle.gyp:notifier_test_util', '../net/net.gyp:net', @@ -3783,7 +3783,7 @@ 'type': 'executable', 'dependencies': [ 'browser', - 'browser/sync/protocol/sync_proto.gyp:sync_proto', + '../sync/protocol/sync_proto.gyp:sync_proto', 'chrome', 'chrome_resources.gyp:chrome_resources', 'chrome_resources.gyp:chrome_strings', @@ -3957,7 +3957,7 @@ 'target_name': 'sync_performance_tests', 'type': 'executable', 'dependencies': [ - 'browser/sync/protocol/sync_proto.gyp:sync_proto', + '../sync/protocol/sync_proto.gyp:sync_proto', 'chrome', 'test_support_common', '../skia/skia.gyp:skia', diff --git a/net/net.gyp b/net/net.gyp index 850a522..e791245 100644 --- a/net/net.gyp +++ b/net/net.gyp @@ -1545,7 +1545,7 @@ 'dependencies': [ '../chrome/app/policy/cloud_policy_codegen.gyp:cloud_policy_proto_compile', # The test server uses Python modules generated by the sync protos. - '../chrome/browser/sync/protocol/sync_proto.gyp:sync_proto', + '../sync/protocol/sync_proto.gyp:sync_proto', '../third_party/protobuf/protobuf.gyp:py_proto', ], }], diff --git a/net/test/test_server.cc b/net/test/test_server.cc index 397b0bc..4aee7d6 100644 --- a/net/test/test_server.cc +++ b/net/test/test_server.cc @@ -315,10 +315,7 @@ bool TestServer::SetPythonPath() { } AppendToPythonPath(pyproto_dir); - AppendToPythonPath(pyproto_dir.AppendASCII("chrome") - .AppendASCII("browser") - .AppendASCII("sync") - .AppendASCII("protocol")); + AppendToPythonPath(pyproto_dir.AppendASCII("sync").AppendASCII("protocol")); AppendToPythonPath(pyproto_dir.AppendASCII("chrome") .AppendASCII("browser") .AppendASCII("policy") diff --git a/sync/OWNERS b/sync/OWNERS new file mode 100644 index 0000000..041a6b9 --- /dev/null +++ b/sync/OWNERS @@ -0,0 +1,9 @@ +set noparent +akalin@chromium.org +atwilson@chromium.org +lipalani@chromium.org +nick@chromium.org +rlarocque@chromium.org +rsimha@chromium.org +tim@chromium.org +zea@chromium.org diff --git a/chrome/browser/sync/protocol/app_notification_specifics.proto b/sync/protocol/app_notification_specifics.proto index 58436c7..58436c7 100644 --- a/chrome/browser/sync/protocol/app_notification_specifics.proto +++ b/sync/protocol/app_notification_specifics.proto diff --git a/chrome/browser/sync/protocol/app_setting_specifics.proto b/sync/protocol/app_setting_specifics.proto index d936c66..d936c66 100644 --- a/chrome/browser/sync/protocol/app_setting_specifics.proto +++ b/sync/protocol/app_setting_specifics.proto diff --git a/chrome/browser/sync/protocol/app_specifics.proto b/sync/protocol/app_specifics.proto index a7f09ec..a7f09ec 100644 --- a/chrome/browser/sync/protocol/app_specifics.proto +++ b/sync/protocol/app_specifics.proto diff --git a/chrome/browser/sync/protocol/autofill_specifics.proto b/sync/protocol/autofill_specifics.proto index ac7bc51..ac7bc51 100644 --- a/chrome/browser/sync/protocol/autofill_specifics.proto +++ b/sync/protocol/autofill_specifics.proto diff --git a/chrome/browser/sync/protocol/bookmark_specifics.proto b/sync/protocol/bookmark_specifics.proto index c177511..c177511 100644 --- a/chrome/browser/sync/protocol/bookmark_specifics.proto +++ b/sync/protocol/bookmark_specifics.proto diff --git a/chrome/browser/sync/protocol/client_commands.proto b/sync/protocol/client_commands.proto index e574255..e574255 100644 --- a/chrome/browser/sync/protocol/client_commands.proto +++ b/sync/protocol/client_commands.proto diff --git a/chrome/browser/sync/protocol/client_debug_info.proto b/sync/protocol/client_debug_info.proto index 15216f8..15216f8 100644 --- a/chrome/browser/sync/protocol/client_debug_info.proto +++ b/sync/protocol/client_debug_info.proto diff --git a/chrome/browser/sync/protocol/encryption.proto b/sync/protocol/encryption.proto index da51ff0..202ec33 100644 --- a/chrome/browser/sync/protocol/encryption.proto +++ b/sync/protocol/encryption.proto @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // diff --git a/chrome/browser/sync/protocol/extension_setting_specifics.proto b/sync/protocol/extension_setting_specifics.proto index 62947c5..62947c5 100644 --- a/chrome/browser/sync/protocol/extension_setting_specifics.proto +++ b/sync/protocol/extension_setting_specifics.proto diff --git a/chrome/browser/sync/protocol/extension_specifics.proto b/sync/protocol/extension_specifics.proto index e3e1dfb..e3e1dfb 100644 --- a/chrome/browser/sync/protocol/extension_specifics.proto +++ b/sync/protocol/extension_specifics.proto diff --git a/chrome/browser/sync/protocol/nigori_specifics.proto b/sync/protocol/nigori_specifics.proto index 50f5014..50f5014 100644 --- a/chrome/browser/sync/protocol/nigori_specifics.proto +++ b/sync/protocol/nigori_specifics.proto diff --git a/chrome/browser/sync/protocol/password_specifics.proto b/sync/protocol/password_specifics.proto index 769914433..769914433 100644 --- a/chrome/browser/sync/protocol/password_specifics.proto +++ b/sync/protocol/password_specifics.proto diff --git a/chrome/browser/sync/protocol/preference_specifics.proto b/sync/protocol/preference_specifics.proto index 4827c5d..4827c5d 100644 --- a/chrome/browser/sync/protocol/preference_specifics.proto +++ b/sync/protocol/preference_specifics.proto diff --git a/chrome/browser/sync/protocol/search_engine_specifics.proto b/sync/protocol/search_engine_specifics.proto index effaf99..effaf99 100644 --- a/chrome/browser/sync/protocol/search_engine_specifics.proto +++ b/sync/protocol/search_engine_specifics.proto diff --git a/chrome/browser/sync/protocol/session_specifics.proto b/sync/protocol/session_specifics.proto index 9b59dd0..9b59dd0 100644 --- a/chrome/browser/sync/protocol/session_specifics.proto +++ b/sync/protocol/session_specifics.proto diff --git a/chrome/browser/sync/protocol/sync.proto b/sync/protocol/sync.proto index d1aea72..d1aea72 100644 --- a/chrome/browser/sync/protocol/sync.proto +++ b/sync/protocol/sync.proto diff --git a/chrome/browser/sync/protocol/sync_enums.proto b/sync/protocol/sync_enums.proto index d28023b..d28023b 100644 --- a/chrome/browser/sync/protocol/sync_enums.proto +++ b/sync/protocol/sync_enums.proto diff --git a/chrome/browser/sync/protocol/sync_proto.gyp b/sync/protocol/sync_proto.gyp index 40b6ff1..28198b8 100644 --- a/chrome/browser/sync/protocol/sync_proto.gyp +++ b/sync/protocol/sync_proto.gyp @@ -33,9 +33,9 @@ 'typed_url_specifics.proto', ], 'variables': { - 'proto_out_dir': 'chrome/browser/sync/protocol', + 'proto_out_dir': 'sync/protocol', }, - 'includes': ['../../../../build/protoc.gypi'], + 'includes': ['../../build/protoc.gypi'], }, ], } diff --git a/chrome/browser/sync/protocol/test.proto b/sync/protocol/test.proto index 4855d64..7453cee 100644 --- a/chrome/browser/sync/protocol/test.proto +++ b/sync/protocol/test.proto @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // diff --git a/chrome/browser/sync/protocol/theme_specifics.proto b/sync/protocol/theme_specifics.proto index f8318e8..f8318e8 100644 --- a/chrome/browser/sync/protocol/theme_specifics.proto +++ b/sync/protocol/theme_specifics.proto diff --git a/chrome/browser/sync/protocol/typed_url_specifics.proto b/sync/protocol/typed_url_specifics.proto index 1f8a4b8..1f8a4b8 100644 --- a/chrome/browser/sync/protocol/typed_url_specifics.proto +++ b/sync/protocol/typed_url_specifics.proto |