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

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

Issue 7994006: Merge requested by sheriff kliegs to fix chromeos test redness. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/889/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/boot_times_loader.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 102292)
+++ 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/boot_times_loader.cc ('k') | chrome/browser/chromeos/network_state_notifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698