Chromium Code Reviews| 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(); |
|
Nicolas Zea
2016/03/14 22:42:01
What happens if Chrome is already started? Can thi
maxbogue
2016/03/15 17:41:01
Assuming you meant s/Chrome/sync, no, it will not
Nicolas Zea
2016/03/15 18:16:14
Acknowledged.
|
| + } |
| } |
| bool StartupController::StartUp(StartUpDeferredOption deferred_option) { |