| 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 "base/bit_cast.h" | 9 #include "base/bit_cast.h" |
| 10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
| 11 #include "base/single_thread_task_runner.h" | 11 #include "base/single_thread_task_runner.h" |
| 12 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
| 13 #include "base/threading/thread.h" | 13 #include "base/threading/thread.h" |
| 14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
| 15 #include "components/sync/base/cancelation_signal.h" | 15 #include "components/sync/base/cancelation_signal.h" |
| (...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 569 | 569 |
| 570 // Sync thread: Finally run the posted task, only to find that our | 570 // Sync thread: Finally run the posted task, only to find that our |
| 571 // HttpBridgeFactory has been neutered. Should not crash. | 571 // HttpBridgeFactory has been neutered. Should not crash. |
| 572 factory->Init("TestUserAgent", BindToTrackerCallback()); | 572 factory->Init("TestUserAgent", BindToTrackerCallback()); |
| 573 | 573 |
| 574 // At this point, attempting to use the factory would trigger a crash. Both | 574 // At this point, attempting to use the factory would trigger a crash. Both |
| 575 // this test and the real world code should make sure this never happens. | 575 // this test and the real world code should make sure this never happens. |
| 576 } | 576 } |
| 577 | 577 |
| 578 } // namespace syncer | 578 } // namespace syncer |
| OLD | NEW |