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

Unified Diff: components/sync_driver/startup_controller.cc

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
« no previous file with comments | « components/sync_driver/startup_controller.h ('k') | components/sync_driver/startup_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync_driver/startup_controller.cc
diff --git a/components/sync_driver/startup_controller.cc b/components/sync_driver/startup_controller.cc
index a8ae9419bbc1fda307597a0d0987f2d615851e88..631cdcce3466a2e60ab2bad542f0b951427be415 100644
--- a/components/sync_driver/startup_controller.cc
+++ b/components/sync_driver/startup_controller.cc
@@ -78,8 +78,11 @@ void StartupController::Reset(const syncer::ModelTypeSet registered_types) {
registered_types_ = registered_types;
}
-void StartupController::set_setup_in_progress(bool in_progress) {
- setup_in_progress_ = in_progress;
+void StartupController::SetSetupInProgress(bool setup_in_progress) {
+ setup_in_progress_ = setup_in_progress;
+ if (setup_in_progress_) {
+ TryStart();
+ }
}
bool StartupController::StartUp(StartUpDeferredOption deferred_option) {
« no previous file with comments | « components/sync_driver/startup_controller.h ('k') | components/sync_driver/startup_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698