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

Unified Diff: components/browser_sync/profile_sync_service.h

Issue 2494873003: [Sync] Allow sync start without sign-in if the local sync backend is on. (Closed)
Patch Set: Remove ifdefs around include. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/sync/sync_promo_ui.cc ('k') | components/browser_sync/profile_sync_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/browser_sync/profile_sync_service.h
diff --git a/components/browser_sync/profile_sync_service.h b/components/browser_sync/profile_sync_service.h
index 92356b5147505c0b40d538deee023157c04051ef..8aaf07b51960b97230da5229b3fa02dcb1e5b166 100644
--- a/components/browser_sync/profile_sync_service.h
+++ b/components/browser_sync/profile_sync_service.h
@@ -245,6 +245,7 @@ class ProfileSyncService : public syncer::SyncServiceBase,
std::string debug_identifier;
version_info::Channel channel = version_info::Channel::UNKNOWN;
base::SequencedWorkerPool* blocking_pool = nullptr;
+ base::FilePath local_sync_backend_folder;
private:
DISALLOW_COPY_AND_ASSIGN(InitParams);
@@ -262,6 +263,7 @@ class ProfileSyncService : public syncer::SyncServiceBase,
bool IsFirstSetupComplete() const override;
bool IsSyncAllowed() const override;
bool IsSyncActive() const override;
+ bool IsLocalSyncEnabled() const override;
void TriggerRefresh(const syncer::ModelTypeSet& types) override;
void OnDataTypeRequestsSyncStartup(syncer::ModelType type) override;
bool CanSyncStart() const override;
@@ -814,6 +816,9 @@ class ProfileSyncService : public syncer::SyncServiceBase,
// engine to refresh its credentials.
bool is_auth_in_progress_;
+ // The location where the local sync backend stores its data.
+ base::FilePath local_sync_backend_folder_;
+
// Information describing an unrecoverable error.
UnrecoverableErrorReason unrecoverable_error_reason_;
std::string unrecoverable_error_message_;
« no previous file with comments | « chrome/browser/ui/sync/sync_promo_ui.cc ('k') | components/browser_sync/profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698