Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Side by Side Diff: chrome/browser/sync/net/network_change_notifier_io_thread.cc

Issue 2802015: Massively simplify the NetworkChangeNotifier infrastructure:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698