| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "net/android/network_change_notifier_factory_android.h" | 5 #include "net/android/network_change_notifier_factory_android.h" |
| 6 | 6 |
| 7 #include "net/android/network_change_notifier_android.h" | 7 #include "net/android/network_change_notifier_android.h" |
| 8 | 8 |
| 9 namespace net { | 9 namespace net { |
| 10 | 10 |
| 11 NetworkChangeNotifierFactoryAndroid::NetworkChangeNotifierFactoryAndroid() {} | 11 NetworkChangeNotifierFactoryAndroid::NetworkChangeNotifierFactoryAndroid( |
| 12 base::TaskRunner* ui_task_runner) |
| 13 : ui_task_runner_(ui_task_runner) { |
| 14 } |
| 12 | 15 |
| 13 NetworkChangeNotifierFactoryAndroid::~NetworkChangeNotifierFactoryAndroid() {} | 16 NetworkChangeNotifierFactoryAndroid::~NetworkChangeNotifierFactoryAndroid() {} |
| 14 | 17 |
| 15 NetworkChangeNotifier* NetworkChangeNotifierFactoryAndroid::CreateInstance() { | 18 NetworkChangeNotifier* NetworkChangeNotifierFactoryAndroid::CreateInstance() { |
| 16 return new NetworkChangeNotifierAndroid(); | 19 return new NetworkChangeNotifierAndroid(ui_task_runner_); |
| 17 } | 20 } |
| 18 | 21 |
| 19 } // namespace net | 22 } // namespace net |
| OLD | NEW |