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

Unified Diff: chrome/browser/ui/webui/chromeos/login/network_dropdown.h

Issue 10789032: Merge 145601 - Added forced network scan to network dropdown. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1180/src/
Patch Set: Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/webui/chromeos/login/network_dropdown.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/chromeos/login/network_dropdown.h
===================================================================
--- chrome/browser/ui/webui/chromeos/login/network_dropdown.h (revision 146976)
+++ chrome/browser/ui/webui/chromeos/login/network_dropdown.h (working copy)
@@ -6,9 +6,10 @@
#define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_DROPDOWN_H_
#include "base/basictypes.h"
+#include "base/timer.h"
+#include "chrome/browser/chromeos/cros/network_library.h"
#include "chrome/browser/chromeos/status/network_menu.h"
#include "chrome/browser/chromeos/status/network_menu_icon.h"
-#include "chrome/browser/chromeos/cros/network_library.h"
#include "ui/gfx/native_widget_types.h"
namespace content {
@@ -53,6 +54,10 @@
private:
void SetNetworkIconAndText();
+ // Forces network scan and refreshes control state. Should be called
+ // by |network_scan_timer_| only.
+ void ForceNetworkScan();
+
// The Network menu.
scoped_ptr<NetworkMenuWebUI> network_menu_;
// The Network menu icon.
@@ -63,6 +68,9 @@
// Is the dropdown shown on one of the OOBE screens.
bool oobe_;
+ // Timer used to periodically force network scan.
+ base::RepeatingTimer<NetworkDropdown> network_scan_timer_;
+
DISALLOW_COPY_AND_ASSIGN(NetworkDropdown);
};
« no previous file with comments | « no previous file | chrome/browser/ui/webui/chromeos/login/network_dropdown.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698