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

Unified Diff: components/sync_driver/startup_controller.h

Issue 1789433002: [Sync] Start up immediately when entering the sync setup UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@setup
Patch Set: Split tests. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/sync_driver/startup_controller.h
diff --git a/components/sync_driver/startup_controller.h b/components/sync_driver/startup_controller.h
index 6d6993a37e9c2e0ab6d767ffe75942582de802c8..7eb631a3f244906e184e669279bd695c600bff7c 100644
--- a/components/sync_driver/startup_controller.h
+++ b/components/sync_driver/startup_controller.h
@@ -61,7 +61,9 @@ class StartupController {
// See setup_in_progress_.
void Reset(const syncer::ModelTypeSet registered_types);
- void set_setup_in_progress(bool in_progress);
+ // Sets the setup in progress flag and tries to start sync if it's true.
+ void SetSetupInProgress(bool setup_in_progress);
+
bool IsSetupInProgress() const { return setup_in_progress_; }
base::Time start_backend_time() const { return start_backend_time_; }
std::string GetBackendInitializationStateString() const;
@@ -93,7 +95,7 @@ class StartupController {
// data types.
// Note: this is explicitly controlled by higher layers (UI) and is meant to
// reflect what the UI claims the setup state to be. Therefore, only set this
- // due to explicit requests to do so via set_setup_in_progress.
+ // due to explicit requests to do so via SetSetupInProgress.
bool setup_in_progress_;
const sync_driver::SyncPrefs* sync_prefs_;
« no previous file with comments | « components/browser_sync/browser/profile_sync_service.cc ('k') | components/sync_driver/startup_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698