OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "components/sync/driver/startup_controller.h" | 5 #include "components/sync/driver/startup_controller.h" |
6 | 6 |
7 #include <string> | |
8 | |
9 #include "base/command_line.h" | 7 #include "base/command_line.h" |
10 #include "base/location.h" | 8 #include "base/location.h" |
11 #include "base/metrics/histogram_macros.h" | 9 #include "base/metrics/histogram_macros.h" |
12 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
13 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
14 #include "base/threading/thread_task_runner_handle.h" | 12 #include "base/threading/thread_task_runner_handle.h" |
15 #include "components/sync/driver/sync_driver_switches.h" | 13 #include "components/sync/driver/sync_driver_switches.h" |
16 #include "components/sync/driver/sync_prefs.h" | 14 #include "components/sync/driver/sync_prefs.h" |
17 | 15 |
18 namespace syncer { | 16 namespace syncer { |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 if (!start_up_time_.is_null()) { | 191 if (!start_up_time_.is_null()) { |
194 RecordTimeDeferred(); | 192 RecordTimeDeferred(); |
195 UMA_HISTOGRAM_ENUMERATION("Sync.Startup.DeferredInitTrigger", | 193 UMA_HISTOGRAM_ENUMERATION("Sync.Startup.DeferredInitTrigger", |
196 TRIGGER_DATA_TYPE_REQUEST, MAX_TRIGGER_VALUE); | 194 TRIGGER_DATA_TYPE_REQUEST, MAX_TRIGGER_VALUE); |
197 } | 195 } |
198 received_start_request_ = true; | 196 received_start_request_ = true; |
199 TryStart(); | 197 TryStart(); |
200 } | 198 } |
201 | 199 |
202 } // namespace syncer | 200 } // namespace syncer |
OLD | NEW |