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

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

Issue 7520037: [cros] Network dropdown button in WebUI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove debug Created 9 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/status/network_menu.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
(...skipping 5626 matching lines...) Expand 10 before | Expand all | Expand 10 after
5637 5637
5638 WifiNetwork* wifi2 = new WifiNetwork("fw2"); 5638 WifiNetwork* wifi2 = new WifiNetwork("fw2");
5639 wifi2->set_name("Fake WiFi"); 5639 wifi2->set_name("Fake WiFi");
5640 wifi2->set_strength(70); 5640 wifi2->set_strength(70);
5641 wifi2->set_connected(false); 5641 wifi2->set_connected(false);
5642 wifi2->set_encryption(SECURITY_NONE); 5642 wifi2->set_encryption(SECURITY_NONE);
5643 wifi2->set_profile_type(PROFILE_SHARED); 5643 wifi2->set_profile_type(PROFILE_SHARED);
5644 AddNetwork(wifi2); 5644 AddNetwork(wifi2);
5645 5645
5646 WifiNetwork* wifi3 = new WifiNetwork("fw3"); 5646 WifiNetwork* wifi3 = new WifiNetwork("fw3");
5647 wifi3->set_name("Fake WiFi Encrypted"); 5647 wifi3->set_name("Fake WiFi Encrypted with a long name");
5648 wifi3->set_strength(60); 5648 wifi3->set_strength(60);
5649 wifi3->set_connected(false); 5649 wifi3->set_connected(false);
5650 wifi3->set_encryption(SECURITY_WEP); 5650 wifi3->set_encryption(SECURITY_WEP);
5651 wifi3->set_passphrase_required(true); 5651 wifi3->set_passphrase_required(true);
5652 wifi3->set_profile_type(PROFILE_USER); 5652 wifi3->set_profile_type(PROFILE_USER);
5653 AddNetwork(wifi3); 5653 AddNetwork(wifi3);
5654 5654
5655 WifiNetwork* wifi4 = new WifiNetwork("fw4"); 5655 WifiNetwork* wifi4 = new WifiNetwork("fw4");
5656 wifi4->set_name("Fake WiFi 802.1x"); 5656 wifi4->set_name("Fake WiFi 802.1x");
5657 wifi4->set_strength(50); 5657 wifi4->set_strength(50);
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
5873 return network_library; 5873 return network_library;
5874 } 5874 }
5875 5875
5876 ///////////////////////////////////////////////////////////////////////////// 5876 /////////////////////////////////////////////////////////////////////////////
5877 5877
5878 } // namespace chromeos 5878 } // namespace chromeos
5879 5879
5880 // Allows InvokeLater without adding refcounting. This class is a Singleton and 5880 // Allows InvokeLater without adding refcounting. This class is a Singleton and
5881 // won't be deleted until it's last InvokeLater is run. 5881 // won't be deleted until it's last InvokeLater is run.
5882 DISABLE_RUNNABLE_METHOD_REFCOUNT(chromeos::NetworkLibraryImplBase); 5882 DISABLE_RUNNABLE_METHOD_REFCOUNT(chromeos::NetworkLibraryImplBase);
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/status/network_menu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698