| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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/core/http_bridge.h" | 5 #include "components/sync/engine/net/http_bridge.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/bit_cast.h" | 11 #include "base/bit_cast.h" |
| 12 #include "base/location.h" | 12 #include "base/location.h" |
| 13 #include "base/metrics/histogram_macros.h" | 13 #include "base/metrics/histogram_macros.h" |
| 14 #include "base/metrics/sparse_histogram.h" | 14 #include "base/metrics/sparse_histogram.h" |
| 15 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
| (...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 435 int64_t sane_time_ms = 0; | 435 int64_t sane_time_ms = 0; |
| 436 if (base::StringToInt64(sane_time_str, &sane_time_ms)) { | 436 if (base::StringToInt64(sane_time_str, &sane_time_ms)) { |
| 437 network_time_update_callback_.Run( | 437 network_time_update_callback_.Run( |
| 438 base::Time::FromJsTime(sane_time_ms), | 438 base::Time::FromJsTime(sane_time_ms), |
| 439 base::TimeDelta::FromMilliseconds(1), | 439 base::TimeDelta::FromMilliseconds(1), |
| 440 fetch_state_.end_time - fetch_state_.start_time); | 440 fetch_state_.end_time - fetch_state_.start_time); |
| 441 } | 441 } |
| 442 } | 442 } |
| 443 | 443 |
| 444 } // namespace syncer | 444 } // namespace syncer |
| OLD | NEW |