| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "chrome/browser/sync/net/network_change_notifier_io_thread.h" | |
| 6 | |
| 7 #include "base/logging.h" | |
| 8 #include "chrome/browser/io_thread.h" | |
| 9 | |
| 10 NetworkChangeNotifierIOThread::NetworkChangeNotifierIOThread( | |
| 11 IOThread* io_thread) : io_thread_(io_thread) { | |
| 12 DCHECK(io_thread_); | |
| 13 } | |
| 14 | |
| 15 NetworkChangeNotifierIOThread::~NetworkChangeNotifierIOThread() {} | |
| 16 | |
| 17 MessageLoop* NetworkChangeNotifierIOThread::GetMessageLoop() const { | |
| 18 return io_thread_->message_loop(); | |
| 19 } | |
| 20 | |
| 21 net::NetworkChangeNotifier* | |
| 22 NetworkChangeNotifierIOThread::GetNetworkChangeNotifier() const { | |
| 23 return io_thread_->globals()->network_change_notifier.get(); | |
| 24 } | |
| OLD | NEW |