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

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

Issue 4818002: Fix favorite and auto_connect property usage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 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) 2010 The Chromium Authors. All rights reserved. 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 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 #ifndef CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_
6 #define CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ 6 #define CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 } 124 }
125 const std::string& path; 125 const std::string& path;
126 }; 126 };
127 127
128 const std::string& name() const { return name_; } 128 const std::string& name() const { return name_; }
129 int strength() const { return strength_; } 129 int strength() const { return strength_; }
130 bool auto_connect() const { return auto_connect_; } 130 bool auto_connect() const { return auto_connect_; }
131 bool favorite() const { return favorite_; } 131 bool favorite() const { return favorite_; }
132 132
133 void set_auto_connect(bool auto_connect) { auto_connect_ = auto_connect; } 133 void set_auto_connect(bool auto_connect) { auto_connect_ = auto_connect; }
134 void set_favorite(bool favorite) { favorite_ = favorite; } 134 // No setter for favorite_.
Charlie Lee 2010/11/12 12:29:57 Please explain why. We don't have a setter for fav
kochi 2010/11/15 08:46:13 adopted your comment. thanks! On 2010/11/12 12:29
135 135
136 // Network overrides. 136 // Network overrides.
137 virtual void Clear(); 137 virtual void Clear();
138 138
139 protected: 139 protected:
140 WirelessNetwork() 140 WirelessNetwork()
141 : Network(), 141 : Network(),
142 strength_(0), 142 strength_(0),
143 auto_connect_(false), 143 auto_connect_(false),
144 favorite_(false) {} 144 favorite_(false) {}
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 virtual std::string GetHtmlInfo(int refresh) = 0; 567 virtual std::string GetHtmlInfo(int refresh) = 0;
568 568
569 // Factory function, creates a new instance and returns ownership. 569 // Factory function, creates a new instance and returns ownership.
570 // For normal usage, access the singleton via CrosLibrary::Get(). 570 // For normal usage, access the singleton via CrosLibrary::Get().
571 static NetworkLibrary* GetImpl(bool stub); 571 static NetworkLibrary* GetImpl(bool stub);
572 }; 572 };
573 573
574 } // namespace chromeos 574 } // namespace chromeos
575 575
576 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ 576 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/cros/network_library.cc » ('j') | chrome/browser/chromeos/status/network_menu.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698