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

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 4794 matching lines...) Expand 10 before | Expand all | Expand 10 after
4805 // If these change, the expectations in network_library_unittest and 4805 // If these change, the expectations in network_library_unittest and
4806 // network_menu_icon_unittest need to be changed also. 4806 // network_menu_icon_unittest need to be changed also.
4807 4807
4808 // Networks are added in priority order. 4808 // Networks are added in priority order.
4809 network_priority_order_ = 0; 4809 network_priority_order_ = 0;
4810 4810
4811 Network* ethernet = new EthernetNetwork("eth1"); 4811 Network* ethernet = new EthernetNetwork("eth1");
4812 ethernet->set_name("Fake Ethernet"); 4812 ethernet->set_name("Fake Ethernet");
4813 ethernet->set_is_active(true); 4813 ethernet->set_is_active(true);
4814 ethernet->set_connected(true); 4814 ethernet->set_connected(true);
4815 AddStubNetwork(ethernet, PROFILE_NONE); 4815 AddStubNetwork(ethernet, PROFILE_SHARED);
4816 4816
4817 WifiNetwork* wifi1 = new WifiNetwork("wifi1"); 4817 WifiNetwork* wifi1 = new WifiNetwork("wifi1");
4818 wifi1->set_name("Fake WiFi1"); 4818 wifi1->set_name("Fake WiFi1");
4819 wifi1->set_strength(100); 4819 wifi1->set_strength(100);
4820 wifi1->set_connected(true); 4820 wifi1->set_connected(true);
4821 wifi1->set_encryption(SECURITY_NONE); 4821 wifi1->set_encryption(SECURITY_NONE);
4822 AddStubNetwork(wifi1, PROFILE_NONE); 4822 AddStubNetwork(wifi1, PROFILE_SHARED);
4823 4823
4824 WifiNetwork* wifi2 = new WifiNetwork("wifi2"); 4824 WifiNetwork* wifi2 = new WifiNetwork("wifi2");
4825 wifi2->set_name("Fake WiFi2"); 4825 wifi2->set_name("Fake WiFi2");
4826 wifi2->set_strength(70); 4826 wifi2->set_strength(70);
4827 wifi2->set_encryption(SECURITY_NONE); 4827 wifi2->set_encryption(SECURITY_NONE);
4828 AddStubNetwork(wifi2, PROFILE_SHARED); 4828 AddStubNetwork(wifi2, PROFILE_SHARED);
4829 4829
4830 WifiNetwork* wifi3 = new WifiNetwork("wifi3"); 4830 WifiNetwork* wifi3 = new WifiNetwork("wifi3");
4831 wifi3->set_name("Fake WiFi3 Encrypted with a long name"); 4831 wifi3->set_name("Fake WiFi3 Encrypted with a long name");
4832 wifi3->set_strength(60); 4832 wifi3->set_strength(60);
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
5158 return impl; 5158 return impl;
5159 } 5159 }
5160 5160
5161 ///////////////////////////////////////////////////////////////////////////// 5161 /////////////////////////////////////////////////////////////////////////////
5162 5162
5163 } // namespace chromeos 5163 } // namespace chromeos
5164 5164
5165 // Allows InvokeLater without adding refcounting. This class is a Singleton and 5165 // Allows InvokeLater without adding refcounting. This class is a Singleton and
5166 // won't be deleted until its last InvokeLater is run. 5166 // won't be deleted until its last InvokeLater is run.
5167 DISABLE_RUNNABLE_METHOD_REFCOUNT(chromeos::NetworkLibraryImplBase); 5167 DISABLE_RUNNABLE_METHOD_REFCOUNT(chromeos::NetworkLibraryImplBase);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698