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

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

Issue 8102019: redesign and reimplement proxy config service and tracker, revise proxy ui on cros (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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 <dbus/dbus-glib.h> 7 #include <dbus/dbus-glib.h>
8 #include <dbus/dbus-gtype-specialized.h> 8 #include <dbus/dbus-gtype-specialized.h>
9 #include <glib-object.h> 9 #include <glib-object.h>
10 10
(...skipping 4784 matching lines...) Expand 10 before | Expand all | Expand 10 after
4795 // If these change, the expectations in network_library_unittest and 4795 // If these change, the expectations in network_library_unittest and
4796 // network_menu_icon_unittest need to be changed also. 4796 // network_menu_icon_unittest need to be changed also.
4797 4797
4798 // Networks are added in priority order. 4798 // Networks are added in priority order.
4799 network_priority_order_ = 0; 4799 network_priority_order_ = 0;
4800 4800
4801 Network* ethernet = new EthernetNetwork("eth1"); 4801 Network* ethernet = new EthernetNetwork("eth1");
4802 ethernet->set_name("Fake Ethernet"); 4802 ethernet->set_name("Fake Ethernet");
4803 ethernet->set_is_active(true); 4803 ethernet->set_is_active(true);
4804 ethernet->set_connected(true); 4804 ethernet->set_connected(true);
4805 AddStubNetwork(ethernet, PROFILE_NONE); 4805 AddStubNetwork(ethernet, PROFILE_SHARED);
4806 4806
4807 WifiNetwork* wifi1 = new WifiNetwork("wifi1"); 4807 WifiNetwork* wifi1 = new WifiNetwork("wifi1");
4808 wifi1->set_name("Fake WiFi1"); 4808 wifi1->set_name("Fake WiFi1");
4809 wifi1->set_strength(100); 4809 wifi1->set_strength(100);
4810 wifi1->set_connected(true); 4810 wifi1->set_connected(true);
4811 wifi1->set_encryption(SECURITY_NONE); 4811 wifi1->set_encryption(SECURITY_NONE);
4812 AddStubNetwork(wifi1, PROFILE_NONE); 4812 AddStubNetwork(wifi1, PROFILE_SHARED);
4813 4813
4814 WifiNetwork* wifi2 = new WifiNetwork("wifi2"); 4814 WifiNetwork* wifi2 = new WifiNetwork("wifi2");
4815 wifi2->set_name("Fake WiFi2"); 4815 wifi2->set_name("Fake WiFi2");
4816 wifi2->set_strength(70); 4816 wifi2->set_strength(70);
4817 wifi2->set_encryption(SECURITY_NONE); 4817 wifi2->set_encryption(SECURITY_NONE);
4818 AddStubNetwork(wifi2, PROFILE_SHARED); 4818 AddStubNetwork(wifi2, PROFILE_SHARED);
4819 4819
4820 WifiNetwork* wifi3 = new WifiNetwork("wifi3"); 4820 WifiNetwork* wifi3 = new WifiNetwork("wifi3");
4821 wifi3->set_name("Fake WiFi3 Encrypted with a long name"); 4821 wifi3->set_name("Fake WiFi3 Encrypted with a long name");
4822 wifi3->set_strength(60); 4822 wifi3->set_strength(60);
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
5148 return impl; 5148 return impl;
5149 } 5149 }
5150 5150
5151 ///////////////////////////////////////////////////////////////////////////// 5151 /////////////////////////////////////////////////////////////////////////////
5152 5152
5153 } // namespace chromeos 5153 } // namespace chromeos
5154 5154
5155 // Allows InvokeLater without adding refcounting. This class is a Singleton and 5155 // Allows InvokeLater without adding refcounting. This class is a Singleton and
5156 // won't be deleted until its last InvokeLater is run. 5156 // won't be deleted until its last InvokeLater is run.
5157 DISABLE_RUNNABLE_METHOD_REFCOUNT(chromeos::NetworkLibraryImplBase); 5157 DISABLE_RUNNABLE_METHOD_REFCOUNT(chromeos::NetworkLibraryImplBase);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698