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 2203673002: [Sync] Move //components/sync_driver to //components/sync/driver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sd-a
Patch Set: Full change rebased on static lib. Created 4 years, 4 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
similarity index 92%
rename from components/sync_driver/startup_controller.cc
rename to components/sync/driver/startup_controller.cc
index 26b4ef7e55ea657a6638c07065ab8966023f510c..9a5b33b4815bfd334e2cb52ca2de7b2ade210230 100644
--- a/components/sync_driver/startup_controller.cc
+++ b/components/sync/driver/startup_controller.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/sync_driver/startup_controller.h"
+#include "components/sync/driver/startup_controller.h"
#include <string>
@@ -12,8 +12,8 @@
#include "base/single_thread_task_runner.h"
#include "base/strings/string_number_conversions.h"
#include "base/threading/thread_task_runner_handle.h"
-#include "components/sync_driver/sync_driver_switches.h"
-#include "components/sync_driver/sync_prefs.h"
+#include "components/sync/driver/sync_driver_switches.h"
+#include "components/sync/driver/sync_prefs.h"
namespace browser_sync {
@@ -145,11 +145,9 @@ bool StartupController::TryStartImmediately() {
void StartupController::RecordTimeDeferred() {
DCHECK(!start_up_time_.is_null());
base::TimeDelta time_deferred = base::Time::Now() - start_up_time_;
- UMA_HISTOGRAM_CUSTOM_TIMES("Sync.Startup.TimeDeferred2",
- time_deferred,
- base::TimeDelta::FromSeconds(0),
- base::TimeDelta::FromMinutes(2),
- 60);
+ UMA_HISTOGRAM_CUSTOM_TIMES("Sync.Startup.TimeDeferred2", time_deferred,
+ base::TimeDelta::FromSeconds(0),
+ base::TimeDelta::FromMinutes(2), 60);
}
void StartupController::OnFallbackStartupTimerExpired() {
@@ -162,8 +160,7 @@ void StartupController::OnFallbackStartupTimerExpired() {
DVLOG(2) << "Sync deferred init fallback timer expired, starting backend.";
RecordTimeDeferred();
UMA_HISTOGRAM_ENUMERATION("Sync.Startup.DeferredInitTrigger",
- TRIGGER_FALLBACK_TIMER,
- MAX_TRIGGER_VALUE);
+ TRIGGER_FALLBACK_TIMER, MAX_TRIGGER_VALUE);
received_start_request_ = true;
TryStart();
}
@@ -199,8 +196,7 @@ void StartupController::OnDataTypeRequestsSyncStartup(syncer::ModelType type) {
ModelTypeToHistogramInt(type),
syncer::MODEL_TYPE_COUNT);
UMA_HISTOGRAM_ENUMERATION("Sync.Startup.DeferredInitTrigger",
- TRIGGER_DATA_TYPE_REQUEST,
- MAX_TRIGGER_VALUE);
+ TRIGGER_DATA_TYPE_REQUEST, MAX_TRIGGER_VALUE);
}
received_start_request_ = true;
TryStart();
« 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