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

Side by Side Diff: chrome/browser/chromeos/cros/network_library.cc

Issue 7969009: Removed chromeos::NetworkStateNotifier and redirected all related code to use (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/chromeos/cros/network_library.h" 5 #include "chrome/browser/chromeos/cros/network_library.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <dbus/dbus-glib.h> 8 #include <dbus/dbus-glib.h>
9 #include <dbus/dbus-gtype-specialized.h> 9 #include <dbus/dbus-gtype-specialized.h>
10 #include <glib-object.h> 10 #include <glib-object.h>
(...skipping 4693 matching lines...) Expand 10 before | Expand all | Expand 10 after
4704 ethernet_ = new EthernetNetwork("eth1"); 4704 ethernet_ = new EthernetNetwork("eth1");
4705 ethernet_->set_name("Fake Ethernet"); 4705 ethernet_->set_name("Fake Ethernet");
4706 ethernet_->set_connected(true); 4706 ethernet_->set_connected(true);
4707 ethernet_->set_is_active(true); 4707 ethernet_->set_is_active(true);
4708 AddStubNetwork(ethernet_); 4708 AddStubNetwork(ethernet_);
4709 4709
4710 WifiNetwork* wifi1 = new WifiNetwork("wifi1"); 4710 WifiNetwork* wifi1 = new WifiNetwork("wifi1");
4711 wifi1->set_name("Fake WiFi1 Connected"); 4711 wifi1->set_name("Fake WiFi1 Connected");
4712 wifi1->set_strength(100); 4712 wifi1->set_strength(100);
4713 wifi1->set_connected(true); 4713 wifi1->set_connected(true);
4714 wifi1->set_is_active(true); 4714 wifi1->set_is_active(false);
4715 wifi1->set_encryption(SECURITY_NONE); 4715 wifi1->set_encryption(SECURITY_NONE);
4716 wifi1->set_profile_type(PROFILE_SHARED); 4716 wifi1->set_profile_type(PROFILE_SHARED);
4717 AddStubNetwork(wifi1); 4717 AddStubNetwork(wifi1);
4718 4718
4719 WifiNetwork* wifi2 = new WifiNetwork("wifi2"); 4719 WifiNetwork* wifi2 = new WifiNetwork("wifi2");
4720 wifi2->set_name("Fake WiFi2 Connecting"); 4720 wifi2->set_name("Fake WiFi2 Connecting");
4721 wifi2->set_strength(70); 4721 wifi2->set_strength(70);
4722 wifi2->set_connecting(true); 4722 wifi2->set_connecting(true);
4723 wifi2->set_encryption(SECURITY_NONE); 4723 wifi2->set_encryption(SECURITY_NONE);
4724 wifi2->set_profile_type(PROFILE_SHARED); 4724 wifi2->set_profile_type(PROFILE_SHARED);
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
4948 return impl; 4948 return impl;
4949 } 4949 }
4950 4950
4951 ///////////////////////////////////////////////////////////////////////////// 4951 /////////////////////////////////////////////////////////////////////////////
4952 4952
4953 } // namespace chromeos 4953 } // namespace chromeos
4954 4954
4955 // Allows InvokeLater without adding refcounting. This class is a Singleton and 4955 // Allows InvokeLater without adding refcounting. This class is a Singleton and
4956 // won't be deleted until its last InvokeLater is run. 4956 // won't be deleted until its last InvokeLater is run.
4957 DISABLE_RUNNABLE_METHOD_REFCOUNT(chromeos::NetworkLibraryImplBase); 4957 DISABLE_RUNNABLE_METHOD_REFCOUNT(chromeos::NetworkLibraryImplBase);
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/boot_times_loader.cc ('k') | chrome/browser/chromeos/net/network_change_notifier_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698