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

Side by Side Diff: components/sync_driver/startup_controller.cc

Issue 1970833002: Fix include path for moved thread_task_runner_handle.h header in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a1_move_task_runner_handle
Patch Set: merge up to r393009 Created 4 years, 7 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 unified diff | Download patch
OLDNEW
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> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/location.h" 10 #include "base/location.h"
11 #include "base/metrics/histogram.h" 11 #include "base/metrics/histogram.h"
12 #include "base/single_thread_task_runner.h" 12 #include "base/single_thread_task_runner.h"
13 #include "base/strings/string_number_conversions.h" 13 #include "base/strings/string_number_conversions.h"
14 #include "base/thread_task_runner_handle.h" 14 #include "base/threading/thread_task_runner_handle.h"
15 #include "components/sync_driver/sync_driver_switches.h" 15 #include "components/sync_driver/sync_driver_switches.h"
16 #include "components/sync_driver/sync_prefs.h" 16 #include "components/sync_driver/sync_prefs.h"
17 17
18 namespace browser_sync { 18 namespace browser_sync {
19 19
20 namespace { 20 namespace {
21 21
22 // The amount of time we'll wait to initialize sync if no data type triggers 22 // The amount of time we'll wait to initialize sync if no data type triggers
23 // initialization via a StartSyncFlare. 23 // initialization via a StartSyncFlare.
24 const int kDeferredInitFallbackSeconds = 10; 24 const int kDeferredInitFallbackSeconds = 10;
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 syncer::MODEL_TYPE_COUNT); 189 syncer::MODEL_TYPE_COUNT);
190 UMA_HISTOGRAM_ENUMERATION("Sync.Startup.DeferredInitTrigger", 190 UMA_HISTOGRAM_ENUMERATION("Sync.Startup.DeferredInitTrigger",
191 TRIGGER_DATA_TYPE_REQUEST, 191 TRIGGER_DATA_TYPE_REQUEST,
192 MAX_TRIGGER_VALUE); 192 MAX_TRIGGER_VALUE);
193 } 193 }
194 received_start_request_ = true; 194 received_start_request_ = true;
195 TryStart(); 195 TryStart();
196 } 196 }
197 197
198 } // namespace browser_sync 198 } // namespace browser_sync
OLDNEW
« no previous file with comments | « components/sync_driver/shared_change_processor.cc ('k') | components/sync_driver/sync_stopped_reporter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698