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

Side by Side Diff: components/browser_sync/profile_sync_service.h

Issue 2649133012: [Sync] Calculate active types and track catch up in DTMI not PSS. (Closed)
Patch Set: Fix ProfileSyncServiceTest. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | components/browser_sync/profile_sync_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 5 #ifndef COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
6 #define COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 6 #define COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 919 matching lines...) Expand 10 before | Expand all | Expand 10 after
930 930
931 // Listens for the system being under memory pressure. 931 // Listens for the system being under memory pressure.
932 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_; 932 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_;
933 933
934 // Nigori state after user switching to custom passphrase, saved until 934 // Nigori state after user switching to custom passphrase, saved until
935 // transition steps complete. It will be injected into new engine after sync 935 // transition steps complete. It will be injected into new engine after sync
936 // restart. 936 // restart.
937 std::unique_ptr<syncer::SyncEncryptionHandler::NigoriState> 937 std::unique_ptr<syncer::SyncEncryptionHandler::NigoriState>
938 saved_nigori_state_; 938 saved_nigori_state_;
939 939
940 // When BeginConfigureCatchUpBeforeClear is called it will set
941 // catch_up_configure_in_progress_ to true. This is needed to detect that call
942 // to OnConfigureDone originated from BeginConfigureCatchUpBeforeClear and
943 // needs to be followed by ClearAndRestartSyncForPassphraseEncryption().
944 bool catch_up_configure_in_progress_;
pavely 2017/01/26 18:02:51 I don't think we should move this field to DTM. Ha
maxbogue 2017/01/26 18:41:39 It does, because one function I want to move out o
945
946 // Whether the major version has changed since the last time Chrome ran, 940 // Whether the major version has changed since the last time Chrome ran,
947 // and therefore a passphrase required state should result in prompting 941 // and therefore a passphrase required state should result in prompting
948 // the user. This logic is only enabled on platforms that consume the 942 // the user. This logic is only enabled on platforms that consume the
949 // IsPassphrasePrompted sync preference. 943 // IsPassphrasePrompted sync preference.
950 bool passphrase_prompt_triggered_by_version_; 944 bool passphrase_prompt_triggered_by_version_;
951 945
952 // An object that lets us check whether sync is currently allowed on this 946 // An object that lets us check whether sync is currently allowed on this
953 // platform. 947 // platform.
954 PlatformSyncAllowedProvider platform_sync_allowed_provider_; 948 PlatformSyncAllowedProvider platform_sync_allowed_provider_;
955 949
956 // Used to ensure that certain operations are performed on the thread that 950 // Used to ensure that certain operations are performed on the thread that
957 // this object was created on. 951 // this object was created on.
958 base::ThreadChecker thread_checker_; 952 base::ThreadChecker thread_checker_;
959 953
960 // This weak factory invalidates its issued pointers when Sync is disabled. 954 // This weak factory invalidates its issued pointers when Sync is disabled.
961 base::WeakPtrFactory<ProfileSyncService> sync_enabled_weak_factory_; 955 base::WeakPtrFactory<ProfileSyncService> sync_enabled_weak_factory_;
962 956
963 base::WeakPtrFactory<ProfileSyncService> weak_factory_; 957 base::WeakPtrFactory<ProfileSyncService> weak_factory_;
964 958
965 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 959 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
966 }; 960 };
967 961
968 bool ShouldShowActionOnUI(const syncer::SyncProtocolError& error); 962 bool ShouldShowActionOnUI(const syncer::SyncProtocolError& error);
969 963
970 } // namespace browser_sync 964 } // namespace browser_sync
971 965
972 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 966 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | components/browser_sync/profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698