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

Unified Diff: chrome/browser/chromeos/net/network_change_notifier_chromeos.cc

Issue 7969009: Removed chromeos::NetworkStateNotifier and redirected all related code to use (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 | « chrome/browser/chromeos/cros/network_library.cc ('k') | chrome/browser/chromeos/network_state_notifier.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/net/network_change_notifier_chromeos.cc
===================================================================
--- chrome/browser/chromeos/net/network_change_notifier_chromeos.cc (revision 102206)
+++ chrome/browser/chromeos/net/network_change_notifier_chromeos.cc (working copy)
@@ -12,9 +12,11 @@
// Delay for online change notification reporting.
const int kOnlineNotificationDelayMS = 500;
+const int kInitialNotificationCheckDelayMS = 1000;
bool IsOnline(chromeos::ConnectionState state) {
- return state == chromeos::STATE_ONLINE;
+ return state == chromeos::STATE_ONLINE ||
+ state == chromeos::STATE_PORTAL;
}
}
@@ -69,11 +71,12 @@
chromeos::CrosLibrary::Get()->GetPowerLibrary();
power->AddObserver(this);
+ UpdateNetworkState(net);
BrowserThread::PostDelayedTask(
BrowserThread::UI, FROM_HERE,
NewRunnableFunction(
&NetworkChangeNotifierChromeos::UpdateInitialState, this),
- kOnlineNotificationDelayMS);
+ kInitialNotificationCheckDelayMS);
}
NetworkChangeNotifierChromeos::~NetworkChangeNotifierChromeos() {
« no previous file with comments | « chrome/browser/chromeos/cros/network_library.cc ('k') | chrome/browser/chromeos/network_state_notifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698